Opened 12 years ago

Last modified 12 years ago

#9516 closed enhancement

MapCSS: add support for spatial expressions — at Version 3

Reported by: simon04 Owned by: team
Priority: normal Milestone: 14.01
Component: Core validator Version:
Keywords: mapcss Cc:

Description (last modified by simon04)

A good support for a spatial "element of" expression could supersede the BuildingInBuilding test and allow mappers to write specific validators (see #9414, #9311).

Change History (3)

comment:1 by simon04, 12 years ago

In 6607/josm:

see #9516 - MapCSS: add basic support for a "contains" expression

The current syntax is outer ∋ inner, e.g., way[building?] ∋ node[building?].

This implementation is known to be inefficient since, for every match on the right side, it checks all primitives of the dataset for a match.

Nevertheless, this implementation allows mappers to write specific MapCSS-based tests involving this spatial operator.

comment:2 by simon04, 12 years ago

In 6609/josm:

see #9516 - MapCSS: greatly improve performance of spatial "element of" (was: "contains") expression

The current syntax is inner ∈ outer.

The order plus symbol has been changed since now the left side is matched in the end.

comment:3 by simon04, 12 years ago

Description: modified (diff)
Summary: MapCSS: add support for "contains" expressionsMapCSS: add support for spatial expressions
Note: See TracTickets for help on using tickets.