We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In example:
const polygonClipping = require('polygon-clipping') const polygon = [[[0,0],[2,0],[0,2],[0,0]]] polygonClipping.area(polygon) == 2 const multi = [[[[0,0],[2,0],[0,2],[0,0]]], [[[2,2],[4,2],[2,4],[2,2]]]] polygonClipping.area(multi) == 4
The text was updated successfully, but these errors were encountered:
There are many other libraries already available which do this, for example @turf/area does it with geojson data or 2d-polygon-area.
Sorry, something went wrong.
I'd like to see this too. The 2d-polygon-area library is very old and doesn't work well with ES6 and Typescript.
2d-polygon-area
I also can't figure out how to calculate the different parts of MultiPolygon, since the rings (holes) should not be counted of course.
MultiPolygon
No branches or pull requests
In example:
The text was updated successfully, but these errors were encountered: