overpass-api-python-wrapper icon indicating copy to clipboard operation
overpass-api-python-wrapper copied to clipboard

Commit 603b7ec to master broke the library

Open Taxuspt opened this issue 5 years ago • 1 comments

Commit https://github.com/mvexel/overpass-api-python-wrapper/commit/603b7ec1818befa780eb6f0389eb7b71db17dcfe which was merged to master has broken the library when dealing with geojson data. It makes the following, wrong assumptions:

  • Ways and Relations contain a geometry field: That only happens if you call get() with verbosity='body geom'
  • All the geometries inside a relation are closed polygons: That is only one of the options, as can be seen in the official documentation.

Please revert this commit. For proper parsing from OSM to GEOJSON you could use osm2geojson.

Taxuspt avatar Feb 05 '20 13:02 Taxuspt