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

Unable to get admin boundary from coordinate. Need help to understand why

0

Hi, I cannot understand how I shall fix the error that causes the admin boundary that should cover the coordinate in the link below:

https://www.openstreetmap.org/query?lat=57.7585&lon=12.2652

It should belong to "Lerums kommun" Admin level 07. It does exist, but the query cannot find it.

What is wrong with the administrative border, and how do I correct it?

asked 08 Feb '16, 22:34

SunYour's gravatar image

SunYour
16224
accept rate: 0%


One Answer:

1

The area is missing from the Overpass server used to generate those query results.

That server is also the default on Overpass-Turbo, so it's straightforward to check what data is present. This script should find the area:

area(3600935550);
out geom;

But returns nothing. A nearby area is found:

area(3600935649);
out geom;

And the relation is present:

rel(935550);
out geom;

So for some reason the Overpass server did not generate an area from that specific relation. Overpass areas are updated less frequently than the rest of the data, and there is a recent edit to some of the member ways of the missing area:

https://www.openstreetmap.org/changeset/37092451

So you might only need to wait until the next time areas are refreshed on the Overpass server.

answered 09 Feb '16, 13:55

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 09 Feb '16, 18:24

Source code available on GitHub .