Add support for relations to match multiple tags. Turned out to be a bit more involve...
authorSteve Bennett <stevagewp@gmail.com>
Fri, 18 Feb 2011 11:32:12 +0000 (11:32 +0000)
committerSteve Bennett <stevagewp@gmail.com>
Fri, 18 Feb 2011 11:32:12 +0000 (11:32 +0000)
commit0136bc8ad2f7f647bf57d6b1cca1e7a1e1a25882
tree8187f68e6515eacfdbed5201a11dee8b71342ca7
parentf92fe9006b29e3f78dd4758ae81cb23e77a7e978
Add support for relations to match multiple tags. Turned out to be a bit more involved than expected. The upshot of it all is that both route=hiking and route=foot walking routes are perfectly supported. By default, route=hiking are made, but existing tags aren't converted.

The syntax is slightly inconsistent:
    <tag k="route" v="hiking" vmatch="hiking|foot"/>
on the relation, but
      <match k="route" v="hiking|foot"/>
on the path. I don't think it's a major drama, and easily changed. Also, match/@v is not a regexp, it's just pipe-separated values.
Inspired by NopMap <ekkehart@gmx.de> on potlatch-dev, 14 Feb 2011.
net/systemeD/halcyon/connection/Connection.as
net/systemeD/potlatch2/RelationSelectPanel.mxml
net/systemeD/potlatch2/mapfeatures/editors/RelationMemberEditor.as
net/systemeD/potlatch2/mapfeatures/editors/RelationMemberEditorFactory.as
net/systemeD/potlatch2/mapfeatures/editors/RouteEditor.mxml
resources/map_features.xml
resources/map_features/paths.xml