GIScience / GIScience/ohsome-quality-api

Error: Querying the ohsome API failed! The defined bpolys parameter contains some invalid geometry

Open
#933 0 comments 0 reactions 0 assignees View on GitHub
bug upstream
Dominant language
Python
Stars
51
Forks
7
Avg merge
21h 54m
Merged PRs (30d)
9

Description

**Request:**
https://ohsome.org/apps/dashboard-test/#backend=oqtApi&topic=land-cover&adminids=-62550%2C-47608&indicators=land-cover-completeness

**Error Message:**

> Sorry, we were unable to process your query!
> OhsomeApiError
> Querying the ohsome API failed! The defined bpolys parameter contains some invalid geometry: found non-noded intersection between LINESTRING ( 7.065792 52.241233, 7.059722 52.245102 ) and LINESTRING ( 7.061772 52.243796, 7.063702 52.242565 ) [ (7.063327579995698, 52.24280381400274, NaN) ]

**Reason:**
Two adjacent boundaries with admin levels are selected. One of those admin levels has a simplified geometry. The other not. This leads to a slight overlap. During unification of those two geometries by the dashboard, an invalid geometry gets created. Note that it is not always the case that an invalid geometry is created while unifying overlapping geometries.

**Related ohsome-dashboard Issue:**
https://github.com/GIScience/ohsome-dashboard/issues/72

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.