[Potlatch-dev] [OpenStreetMap] #3528: Grouping map features that share a top-level tag
OpenStreetMap
trac at openstreetmap.org
Tue Feb 8 13:46:09 GMT 2011
#3528: Grouping map features that share a top-level tag
--------------------------+-------------------------------------------------
Reporter: stevage | Owner: potlatch-dev@…
Type: enhancement | Status: closed
Priority: minor | Milestone:
Component: potlatch2 | Version:
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by stevage):
* status: new => closed
* resolution: => fixed
Comment:
I have implemented this in 25255, and welcome discussion on its merits.
The final syntax/semantics I went with:
<tag k="traffic_calming" v="yes" vmatch="*" />
Means that any traffic_calming=* will be recognised, and the default value
(unless set explicitly by the included dropdown) will be "yes"
If vmatch is not "*", it is interpreted as a regular expression, so this
works:
<tag k="highway" v="motorway" vmatch="motorway(_link)?" />
or, more simply:
<tag k="highway" v="motorway" vmatch="motorway|motorway_link" />
I think this is a useful extension, to solve a few peculiarities in the
tagging scheme and to give us a bit of flexibility in decoupling the
interface from the underlying tags. (With appropriate caution
exercised...)
It doesn't quite solve the highway=proposed, proposed=..., but it's a step
closer.
The same mechanism could also be used for <choice> elements of drop downs:
<choice value="muslim" vmatch="muslim|islamic" ...>
(Again, with appropriate caution...)
--
Ticket URL: <http://trac.openstreetmap.org/ticket/3528#comment:2>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world
More information about the Potlatch-dev
mailing list