TransWikia.com

How OpenLayers handles invalid geometries

Geographic Information Systems Asked on July 15, 2021

What do OpenLayers do if I import invalid Geometries? I have some LineStrings in an area type feature and somehow OpenLayers does not care.
I can see and interact with it. I also have a lot of self-intersecting polygons, which are also invalid, if am not wrong.

So even if OpenLayers can handle them, I’m running into an exception in a third party lib called polygon-clipping.

I do area calculation with this lib and at some point I get an "Unable to find segment" error. Figured out that it caused by one self-intersecting Polygon (out of over 700 other self-intersecting polygons and almost 15000 polygons). So there are some weird edge cases with invalid geometries.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP