[osmosis-dev] WayKeyFilter

Brett Henderson brett at bretth.com
Fri Nov 20 00:44:11 GMT 2009


On Fri, Nov 20, 2009 at 11:00 AM, Andrew Byrd <andrew at fastmail.net> wrote:

>
> Ideally there would be no need for a separator character, because the
> same key could be specified several times for one filter. However,
> Osmosis stores task parameters in a hashmap, so each parameter can
> have only one value per task. This means that having the same one
> appear several times ( --tag-filter key=x key=y ... ), while it would
> be convenient and easily readable, is contrary to the design of
> Osmosis. Separator character seems unavoidable.
>

Yep, could be tricky to allow a task parameter to be specified multiple
times.


>
> The wildcard character, the '=' character, and the separator must be
> escaped somehow. We cannot use \= because Osmosis will still split the
> parameter on the '=' character. Maybe something like @ASTERISK @COMMA
> @EQUALS and a double @@ to really insist on a true at character.
>

If you think the Osmosis current behaviour of splitting at '=' is too
simplistic, feel free to enhance it to allow the '\=' to be escaped.

Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20091120/15db396a/attachment.html>


More information about the osmosis-dev mailing list