kartverket / NGIS-OpenAPI

Tjenestebasert grensesnitt mot NGIS, basert på OpenAPI og REST.
3 stars 9 forks source link

Overlaps in lines from NGIS-OpenAPI #124

Open larsop opened 1 year ago

larsop commented 1 year ago

In the attached picture we se overlap in the data we get from NGIS OpenAPI and this is not expected then we can not use those lines when editing in AR5 Web

Screenshot 2023-06-24 at 08 03 36

The downloaded data and more details can found at https://gitlab.com/nibioopensource/ar5web_pgtopo_update_sql/-/issues/35 and related MR.

larsop commented 1 year ago

The main problem is distance between a node and the line. With current the setup in QMS we get very small tiny spikes where the red part off the lines are almost parallel . In Postgis Topology we snap this red part of the line to single line with the current setup . By changing the tolerance to 1e-10 from 1e-9 we avoid that line node snaps to the line in this case. The area covered by to lines in the red part off the lines are close to nothing and does not make a sense to keep. Using 1e-15 other tests with errors like this "ERROR: Exterior ring is not closed for surface 9556d93b-69e4-4c8c-a510-e7dfed78ab00 using...."