Opened 10 years ago

Closed 10 years ago

Last modified 10 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 by bastiK, 10 years ago

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

comment:2 by naoliv, 10 years ago

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 by bastiK, 10 years ago

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 by simon04, 10 years ago

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. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.