mapshaper
mapshaper copied to clipboard
some features are lost when -clean
Hi,
I have an issue when applying -clean option on some data, I lose some features...
Here the test datas: https://e-nautia.com/fmp2a/disk/public/temp1.zip
Thanks
I'll look into this... thanks for attaching a sample dataset :)
I see what you mean... I will work on fixing this. Geometry errors like this can be hard to debug and fix, so it might take me a while.
Many thanks.
Just for my information, what kind of geometry errors have you noticed? Thanks
In my experience, geometry errors like this are generally related to the limited precision of JavaScript's floating point math operations. The -clean function detects all the places where pairs of line segments intersect each other. When two line segments are almost-but-not-quite parallel, or a vertex of one segment is located almost exactly along the second segment, then it becomes harder to reliably test if the segments intersect.
Hi. No news on this issue? Seems to be challenging? With my respect.