mvexel / overpass-api-python-wrapper

Python bindings for the OpenStreetMap Overpass API
Apache License 2.0
359 stars 89 forks source link

Received corrupt data from Overpass (incomplete polygon). #149

Closed JeLLek1 closed 2 years ago

JeLLek1 commented 2 years ago

I'm trying to retrieve all gas stations in Poland with following query:

area(id:3600049715)->.searchArea;
(
    node["amenity"="fuel"](area.searchArea);>;
    way["amenity"="fuel"](area.searchArea);>;
    relation["amenity"="fuel"](area.searchArea);>;
);

For some relations (e.g. id:12424876) I'm getting error: "Received corrupt data from Overpass (incomplete polygon)." Relation with id 12424876 is marked in response as multipolygon but it contains two connected ways:

{
      "type": "way",
      "id": 337988774,
      "nodes": [
        5879479173,
        3450573246,
        3450573250,
        5879479174
      ]
},

and

{
      "type": "way",
      "id": 915431331,
      "nodes": [
        5879479174,
        3450573714,
        3450573553,
        5879479173
      ]
  },
JeLLek1 commented 2 years ago

I'm sorry, it's duplicated https://github.com/mvexel/overpass-api-python-wrapper/issues/135