Skip to content

Add "is_valid" filter option #254

Open
@mcauer

Description

@mcauer

Use Case Description

An is_valid filter option would give the opportunity to:

  • avoid summing up negative areas from broken polygons
  • analysing the amount of bad geometries as an quality measure
  • give a user the possibility to extract only "usable" features for further usage in other contexts

Request Description

It would be very convenient to write a filter like:
fitler=geometry:polygon and geometry:is_valid and building=*
or
fitler=geometry:valid_polygon and building=*

2nd option would even be more precise, because some cases (touching inner rings) are invalid for polygons but valid for osm-relations.
On the other hands the first one is easier to negate and count all not is_valid objects.

Additional Information

This is quite important for hex.ohsome.org because recently we computed a negative area aggregation value due to broken building geometries in the history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions