SimplifyPostprocessor
Bases: GeodataPostprocessor
Geodata postprocessor that simplifies the polygons by applying the Douglas-Peucker algorithm
PARAMETER | DESCRIPTION |
---|---|
tolerance
|
tolerance of the Douglas-Peucker algorithm in meters (a lower value will result in less simplification, a higher value will result in more simplification, a value equal to the ground sampling distance is recommended)
TYPE:
|
from_config
classmethod
Creates a simplify postprocessor from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
SimplifyPostprocessor
|
simplify postprocessor |
__call__
Postprocesses the geodata by simplifying the polygons.
PARAMETER | DESCRIPTION |
---|---|
gdf
|
geodataframe
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
gpd.GeoDataFrame
|
postprocessed geodataframe |
SimplifyPostprocessorConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of SimplifyPostprocessor
ATTRIBUTE | DESCRIPTION |
---|---|
tolerance |
tolerance of the Douglas-Peucker algorithm in meters (a lower value will result in less simplification, a higher value will result in more simplification, a value equal to the ground sampling distance is recommended)
TYPE:
|