You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2012-07-19 05:05:37
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
modifying points style file
Hi,
I just modifying / simplifying one quite complex points file. There are few lines which I don't understand, I would like to keep things simple , but I wouldn't like to broke some useful functionality.
place=city & population > 699999 & cityxx!=yes {set cityxx=yes} [0x0200 resolution 14 ]
What exactly cityxx!=yes and {set cityxx=yes} doing in this expresion?
cuisine = korean { set cuisinematch=no} [0x2a02 resolution 24 continue with_actions]
cuisine = thai { set cuisinematch=no} [0x2a02 resolution 24 continue with_actions]
What { set cuisinematch=no} doing here?
This line is from polygons file...
natural=water & water=reservoir & 20resolution!=yes {set 20resolution=yes} [0x3c resolution 24-16 ]
Why is & 20resolution!=yes {set 20resolution=yes} here?
regards
mira
Last edited by miramikes (2012-07-19 12:29:00)
Offline
#2 2012-07-23 09:17:03
- csdf
- Member
- From: UK, living in Abu Dhabi
- Registered: 2009-08-11
- Posts: 313
- Website
Re: modifying points style file
The cityxx thing is an internal flag that whoever wrote this file is using to avoid applying the same rule twice. Basically it applies the rule, then sets cityxx to yes, which stops the rule then being applied again to the same object.
The other things you pick out are doing the same thing. They are internal flags being used by the style-writer to control how rules are applied to objects.
Last edited by csdf (2012-07-23 09:17:16)
Offline
#3 2012-08-18 11:24:51
- miramikes
- Member
- Registered: 2011-10-16
- Posts: 128
Re: modifying points style file
The cityxx thing is an internal flag that whoever wrote this file is using to avoid applying the same rule twice. Basically it applies the rule, then sets cityxx to yes, which stops the rule then being applied again to the same object.
The other things you pick out are doing the same thing. They are internal flags being used by the style-writer to control how rules are applied to objects.
thank you for explanation
Any idea what this is doing?
& 20resolution!=yes {set 20resolution=yes}
Wild guess ... setting different resolution for certain object?
regards
mira
Offline
#4 2012-08-20 12:24:43
- csdf
- Member
- From: UK, living in Abu Dhabi
- Registered: 2009-08-11
- Posts: 313
- Website
Re: modifying points style file
Well that code is literally just setting a flag called 20resolution to yes. Somewhere else, there'll be some code that actually does something interesting when the 20resolution flag is set to yes.
Offline
Pages: 1