This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Extract city boundaries for certain locations

0

So to obtain the boundary coordinates/polygon of a city I have been using the following query:
( rel["name" = "New Delhi"];>;);out meta;

But it ends up outputting null data for several cities(eg: 'Bengaluru', 'Mumbai', etc). Is there a way around it to get the administrative boundaries of these cities?
^Much Appreciated

asked 13 May '17, 15:10

shouryalala's gravatar image

shouryalala
11112
accept rate: 0%

edited 13 May '17, 19:10

scai's gravatar image

scai ♦
33.3k21309459


One Answer:

2

It seems they are not present in the OSM data. Here's an Overpass script to search for administrative boundaries: http://overpass-turbo.eu/s/p1x

As you can see, there is no entry for Mumbai.

answered 13 May '17, 15:22

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

Source code available on GitHub .