ohsome-api icon indicating copy to clipboard operation
ohsome-api copied to clipboard

The filter `geometry:polygon` returns multilines and geometrycollections

Open dgatland opened this issue 1 year ago • 0 comments

Bug Description

When calling the /v1/elements/geometry/ endpoint, with the filter geometry:polygon, the response may include MutliLines and GeometryCollections (see attached response_geometries, in particular the LineString returned in the Lütgendortmund boundary near Bövinghausen).

Our example query includes the following parameters:

'bpolys': {'type': 'FeatureCollection', 'features': [<see attached aoi>]},
'filter': 'geometry:polygon and boundary=administrative and admin_level=9',
'properties': 'tags',
'clipGeometry': 'true'

General Information

  • Version of the ohsome API: 1.10.4
  • Remote instance at https://api.ohsome.org/v1
  • Affected endpoint: /elements/geometry
  • URL of request: https://api.ohsome.org/v1/elements/geometry, body=bpolys=<see attached aoi>&filter=geometry%3Apolygon+and+boundary%3Dadministrative+and+admin_level%3D9&properties=tags&clipGeometry=True
  • Used HTTP method: POST
  • Utilized tool/library: ohsome-py==0.3.0

Expected Behaviour

The response should contain only polygons.

Further Information

Related Issues

May be related to https://github.com/GIScience/ohsome-api/issues/109

Attachments

response_geometries.json aoi.json

dgatland avatar Feb 12 '25 10:02 dgatland