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

Pierre Béland pierzenh at yahoo.fr
Wed Nov 6 14:00:43 UTC 2013


There were few examples given over the last year.  To use the relation no., you need to add 3600000000 to it.

      192775 Relation
+ 3600000000
= 3600192775

These instructiions extract all nodes with the tag place inside the limits of Dakar.

node ["place"]
(area:3600192775);
out meta;
 

Pierre 



________________________________
 De : Martin Raifer <tyr.asd at gmail.com>
À : talk at 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 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 not yet implemented, unfortunately:

  https://github.com/drolbr/Overpass-API/issues/55


If you only want to get the administrative area "Dakar": Why not simply  
using something like this:

   area[name="Dakar"][boundary=administrative];
   out;

This works as long as there isn't another city with the same name  
somewhere else.

Martin


_______________________________________________
talk mailing list
talk at openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20131106/341948ce/attachment.html>


More information about the talk mailing list