Skip to content

The filter geometry:polygon returns multilines and geometrycollections #339

@dgatland

Description

@dgatland

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 #109

Attachments

response_geometries.json
aoi.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions