Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#10130 closed enhancement (fixed)

Exclude option/operator for MapCSS

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.06
Component: Core validator Version:
Keywords: mapcss Cc:


Could MapCSS support some kind of option/operation to exclude other tags?

For example, I would like to search/validate objects that only have name=Foo or surface=paved or area=yes, without any other tags.

If the rule has [name] + the exclude option/operation, it shouldn't match anything except the object that has only a name key.

It should work the same way with multiple key/values.
For example, [name][surface][<magical exclude operator>] should match objects with only name + surface.

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by bastiK

What about an eval function that returns the number of tags?

comment:2 Changed 9 years ago by naoliv

Seems good.
It should give the same result, from what I see, and also opens up new possibilities for testing/validating/processing the data.

comment:3 Changed 9 years ago by bastiK

Resolution: fixed
Status: newclosed

In 7237/josm:

fixed #10130 - add mapcss expression to get number of tags

new mapcss expression to print debugging output to the console

comment:4 Changed 9 years ago by simon04

Milestone: 14.06

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.