feature request for style-functions

Hi, in OSM-data there are several objects having something like disused=yes or abandonned=yes. It's pretty hard and confusing to add disused!=yes and so on to each object in style-file. So I thought about another possibility toget rid of these objects. It would be very easy if it would be possible to stop style-processing of actual object, if it matches one rule. E.g. disused=yes { stop-processing() } Would something like this be useful at all, or am I the only one? Or is there already a workaround? Henning

Hi Henning, style functions can only be used to get a boolean value and not for an action. What you are looking for is a delete all action. I remember that something like this exits but I couldn't find the exact name. Maybe someone else knows how all tags from an element could be removed (which is the same like stoop-processing()). Otherwise it could be implemented easily. WanMil
Hi, in OSM-data there are several objects having something like disused=yes or abandonned=yes. It's pretty hard and confusing to add disused!=yes and so on to each object in style-file. So I thought about another possibility toget rid of these objects.
It would be very easy if it would be possible to stop style-processing of actual object, if it matches one rule. E.g.
disused=yes { stop-processing() }
Would something like this be useful at all, or am I the only one? Or is there already a workaround?
Henning

Hi
It would be very easy if it would be possible to stop style-processing of actual object, if it matches one rule. E.g.
disused=yes { stop-processing() }
All we need is to put this disused=yes [ ... ] at the top of the file, and some way of saying that there is no type. Could just leaving the brackets empty [] , or use [ignore] or somthing similar. Better suggestions for the keyword to use welcome. ..Steve

Am 23.12.2012 20:52, schrieb Steve Ratcliffe:
Hi
It would be very easy if it would be possible to stop style-processing of actual object, if it matches one rule. E.g.
disused=yes { stop-processing() } All we need is to put this
disused=yes [ ... ] Maybe disused=yes [ skip-object ]
Henning
participants (3)
-
Henning Scholland
-
Steve Ratcliffe
-
WanMil