[OSM-dev] Multiple XAPI parameters...

80n 80n80n at gmail.com
Fri Jul 9 21:39:55 BST 2010


On Fri, Jul 9, 2010 at 5:51 AM, John Smith <deltafoxtrot256 at gmail.com>wrote:

> On 9 July 2010 13:56, Alan Mintz <Alan_Mintz+OSM at earthlink.net<Alan_Mintz%2BOSM at earthlink.net>>
> wrote:
> > Are they ORd or ANDed? Is there a way to have a partial wildcard on the
>
> As far as I'm aware you can only do simply ORs, eg:
>
> [highway=residential|unclassified]
>
> And you can't do add more than one key value.
>
> Yes you can.  {foo=*][bar=*] is the subset of elements that have both foo
and bar tags.

So, [foo=a|b][bar=c|d] means in SQLspeak:
WHERE (foo=a OR foo=b) AND (bar=c OR bar=d)
More formally:
*x* ∈ (foo=a ∪ foo = b) ∩ (bar =c ∪ bar=d)

80n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100709/21a4c753/attachment.html>


More information about the dev mailing list