Commit 2fdc775a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Drop very small polygons in mask when computing footprint polygon.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <>
parent 624f8cbf
......@@ -50,7 +50,7 @@ from import get_GDAL_ds_inmem
from py_tools_ds.numeric.numbers import is_number
from py_tools_ds.numeric.array import get_array_tilebounds
# internal imports
# internal imports
from .subsetting import get_array_at_mapPos
from .metadata import GDAL_Metadata
......@@ -495,7 +495,7 @@ class GeoArray(object):
multipolygon = raster2polygon(self.mask_nodata.astype(np.uint8),, self.prj, exact=False,
progress=self.progress, q=self.q, timeout=15)
min_npx=10, progress=self.progress, q=self.q, timeout=15)
self._footprint_poly = fill_holes_within_poly(multipolygon)
except (RuntimeError, TimeoutError):
if not self.q:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment