Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't return degenerate geometries in fast intersects operation
when a geometry only touches the clipping polygon (and has no points inside the poly), `intersector.intersection()` will produce a "degenerate" version of the original geometry: a (multi)linestring when the geometry was a polygon, or a (multi)point when the geometry was a linestring. This can lead to inconsistencies when a geometry-type filter is used (e.g. `geometry: polygon`), as the output will then potentially also contain geometries that don't match the filter. Fixes GIScience/ohsome-api#339
- Loading branch information