Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-08 Thread Jean-Marc Liotier
On 11/08/2013 04:58 PM, Fabian Schmidt wrote: > > Am 08.11.13 schrieb Jean-Marc Liotier: > >> To return multiple types of objects, this works: >> >> area[name="Senegal"]; >> ( >> node(area)[name="Fatick"];<; >> way(area)[name="Fatick"];<; >> rel(area)[name="Fatick"];<; >> area(area)[name="Fatic

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-08 Thread Fabian Schmidt
Am 08.11.13 schrieb Jean-Marc Liotier: To return multiple types of objects, this works: area[name="Senegal"]; ( node(area)[name="Fatick"];<; way(area)[name="Fatick"];<; rel(area)[name="Fatick"];<; area(area)[name="Fatick"];<; ); out; I would expect the area() to be a subset of way() and

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-08 Thread Jean-Marc Liotier
On 11/08/2013 04:16 PM, Fabian Schmidt wrote: > area[name="Senegal"]; > node(area)[name="Dakar"]; > out; > > returns a place=city, place=state and a container harbour, but not > Dakar in San Sebastián. Yes, my syntax was incorrect. To return multiple types of objects, this works: area[name

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-08 Thread Fabian Schmidt
Am 06.11.13 schrieb Jean-Marc Liotier: I need to extract objects that fall within the bounds of Senegal - so I turned to the Overpass API... But it seems that my level of understanding does not yet match its power. I need your help ! As an exercise, let's find Dakar in Senegal - http://overp

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Jean-Marc Liotier
On 06/11/2013 15:12, Jean-Marc Liotier wrote: But why is 36 the magic number ? I find in my notes that I had also tried using that magic numbered identifier. For example, http://overpass-turbo.eu/s/1qn : area[name="Dakar"](area:3600192775); out; The area selection does not w

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Jean-Marc Liotier
On 06/11/2013 15:00, Pierre Béland wrote: There were few examples given over the last year. To use the relation no., you need to add 36 to it. 192775 Relation + 36 = 3600192775 These instructiions extract all nodes with the tag place inside the limits of Dakar. node [

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Jean-Marc Liotier
On 06/11/2013 14:28, Martin Raifer wrote: As an exercise, let's find Dakar in Senegal Searching areas by area is not yet supported in Overpass API. See this feature request: https://github.com/drolbr/Overpass-API/issues/45 Well... Maybe area selection is inoperative. Let's try with a good

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Pierre Béland
; out meta;   Pierre De : Martin Raifer À : talk@openstreetmap.org Envoyé le : Mercredi 6 novembre 2013 8h28 Objet : Re: [OSM-talk] Overpass area query gives results outside area... Hi! > As an exercise, let's find Dakar in Senegal Searching areas

Re: [OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Martin Raifer
Hi! As an exercise, let's find Dakar in Senegal Searching areas by area is not yet supported in Overpass API. See this feature request: https://github.com/drolbr/Overpass-API/issues/45 Well... Maybe area selection is inoperative. Let's try with a good old bounding box This is also n

[OSM-talk] Overpass area query gives results outside area...

2013-11-06 Thread Jean-Marc Liotier
I need to extract objects that fall within the bounds of Senegal - so I turned to the Overpass API... But it seems that my level of understanding does not yet match its power. I need your help ! As an exercise, let's find Dakar in Senegal - http://overpass-turbo.eu/s/1qa : area[name="Sen