From 35e4191b468c3a24ead4458ccc49768253b7c243 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Nov 2023 18:40:24 +0100 Subject: [PATCH] Python bindings: gdal.Footprint(): add a minRingArea option --- swig/include/python/gdal_python.i | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swig/include/python/gdal_python.i b/swig/include/python/gdal_python.i index 54becf4b2f4e..fcf1942899c2 100644 --- a/swig/include/python/gdal_python.i +++ b/swig/include/python/gdal_python.i @@ -3416,6 +3416,7 @@ def FootprintOptions(options=None, densify=None, simplify=None, maxPoints=None, + minRingArea=None, layerName=None, layerCreationOptions=None, datasetCreationOptions=None, @@ -3454,6 +3455,8 @@ def FootprintOptions(options=None, tolerance value for polygon simplification maxPoints: maximum number of points (100 by default, "unlimited" for unlimited) + minRingArea: + Minimum value for the area of a ring The unit of the area is in square pixels if targetCoordinateSystem equals "pixel", or otherwise in georeferenced units of the target vector dataset. This option is applied after the reprojection implied by dstSRS layerName: output layer name callback: @@ -3499,6 +3502,8 @@ def FootprintOptions(options=None, new_options += ['-simplify', str(simplify)] if maxPoints is not None: new_options += ['-max_points', str(maxPoints)] + if minRingArea is not None: + new_options += ['-min_ring_area', str(minRingArea)] if layerName is not None: new_options += ['-lyr_name', layerName] if datasetCreationOptions is not None: