Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon with negative area. #1482

Open
ilijaz opened this issue Sep 7, 2018 · 2 comments
Open

Polygon with negative area. #1482

ilijaz opened this issue Sep 7, 2018 · 2 comments

Comments

@ilijaz
Copy link

ilijaz commented Sep 7, 2018

Take a look at this issue in the martinez. After polygon clipping, I have a MultiPolygon with a wrong exterior ring position. Is it possible to check and repair polygons affected by this issue because with QGIS and Leaflet all works fine?
w8r/martinez#91

@rowanwins
Copy link
Member

In v7 I'm looking at swapping out martinez with the polygon-clipping library (which started as a fork of martinez), it's a bit slower but seems a bit more robust for most things.
I'll take a look at your test case and see how it performs...

@ilijaz
Copy link
Author

ilijaz commented Sep 14, 2018

@rowanwins thanks for the tip. With that library, all works fine. I'm going to use it when an area is negative. I'm looking forward to v7.

#polygon-clipping 
$ js test2.js
10154.084948361531
#martinez
$ js test2.js
-9069.92444862902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants