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

calculate areas and lengths of featureCollections as well #51

Merged
merged 3 commits into from
Jan 15, 2019

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Jan 14, 2019

in some special case situations (e.g. clipping of a polygon geometry with touching inner rings), or for relation types other than _multipolygon_s, Geo returned 0.0 for length and area, even though the respective geometry collection might contain polygons or linestrings. This implementation recursively iterates through the geometry collection's sub-geometries and returns the sum of its areas/lenghts.

@tyrasd tyrasd added the enhancement New feature or request label Jan 14, 2019
e.g. whitespace (e.g. space instead of tabs), braces, line lenghts
@tyrasd tyrasd merged commit 702f1f9 into master Jan 15, 2019
@tyrasd tyrasd deleted the patch-geometryCollectionMetrics branch January 15, 2019 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants