generalize Or Null
fun generalizeOrNull(geometry: Geometry, maxDeviation: Double, removeDegenerateParts: Boolean): Geometry?
Generalizes the given geometry by removing vertices based on the Douglas-Poiker algorithm. Point and Multipoint geometries are left unchanged. Envelope is converted to a Polygon and then generalized.
Supports true curves as input, producing a densified curve as output where applicable.
Return
The geometry object that represents the generalization of the input geometry.
Since
200.1.0