Skip to content

Commit

Permalink
Python bindings: gdal.Footprint(): add a minRingArea option
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 28, 2023
1 parent e7c00e2 commit 35e4191
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swig/include/python/gdal_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -3416,6 +3416,7 @@ def FootprintOptions(options=None,
densify=None,
simplify=None,
maxPoints=None,
minRingArea=None,
layerName=None,
layerCreationOptions=None,
datasetCreationOptions=None,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 35e4191

Please sign in to comment.