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

How to calculate the area of the result of union, intersection, etc? #15

Open
Dylan190774 opened this issue Oct 1, 2024 · 0 comments
Open

Comments

@Dylan190774
Copy link

I want to calculate the total area of the result of the functions. I know there are other libraries for that, but it would be very useful to have it in this package, since every library uses its own data-structure and types.

Do I just need to iterate all Polygon's ? But the result can contain 'Ring's, too. What about them?

I can't figure out how a Ring works. Do I need to subtract the inner Ring from the outer Ring to get the right result? But how to distinguish between inner and outer Ring then?

A bit more documentation about the type structure that is used, would be very welcome.

@Dylan190774 Dylan190774 changed the title How to calculate the area of the result of union, intersect, etc? How to calculate the area of the result of union, intersection, etc? Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant