Martin-Jung / LecoS

LecoS QGis Plugin - Contains several analytical functions for land cover analysis
GNU General Public License v3.0
21 stars 19 forks source link

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

Open Martin-Jung opened 8 years ago

Martin-Jung commented 8 years ago

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: