drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
716 stars 90 forks source link

map_to_area filter returns ways which are actually not in the area #621

Closed arminus closed 2 years ago

arminus commented 3 years ago
[bbox:47.70602,12.30014,47.72566,12.34052];
(
way["boundary"="protected_area"]["protect_class"="14"];
);
map_to_area;(
way["highway"](area);
way["boundary"="protected_area"]["protect_class"="14"];
);
(._;>;);
out meta;

This query http://overpass-turbo.eu/s/17Aj returns some ways which are actually not contained in the area I'm filtering for:

2021-05-21_100552

Is this a bug or did I understand the map_to_area command wrong?

arminus commented 3 years ago

This particular area was created on 2021-04-05T18:41:36Z, so 46 days ago - is there just a long delay until areas are updated or is this a general issue?

drolbr commented 3 years ago

Thank you for reporting the issue. It looks on first inspection like a bug in the area creation process.

drolbr commented 2 years ago

The upcoming version 0.7.57 has a fix for this, at least where ways are involved.