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

Landscape vector overlay if vector polygons have "holes" #5

Open
1 task
Martin-Jung opened this issue Sep 6, 2016 · 0 comments
Open
1 task

Landscape vector overlay if vector polygons have "holes" #5

Martin-Jung opened this issue Sep 6, 2016 · 0 comments

Comments

@Martin-Jung
Copy link
Owner

Martin-Jung commented Sep 6, 2016

The Landscape vector overlay function does not work if polygons have internal "holes" within them

This is a "known" bug as LecoS is unable to compute metrics to Multi-polygon features. By adding a hole to a polygon you are changing its type from WKB_POLYGON to WKB_MULTIPOLYGON (because It now has additional boundary nodes).

There is no easy fix for holes yet and this requires a lot more work which is why LecoS is currently unable to compute metrics for Multipolygons. What it technically need to compute is to clip out all raster parts between the individual features and mosaic them together. If the features of a Multipolygon are spatially seperated than you could split them into individual parts before the computation.

Todo:

  • Write a new subroutine that loops through individual WKB_polygons of a WKB_multipolygon and find a way to combine their results
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