GEOSGeometry.simplify(tolerance=0.0, preserve_topology=False)
Returns a new GEOSGeometry
, simplified to the specified tolerance using the Douglas-Peucker algorithm. A higher tolerance value implies fewer points in the output. If no tolerance is provided, it defaults to 0.
By default, this function does not preserve topology. For example, Polygon
objects can be split, be collapsed into lines, or disappear. Polygon
holes can be created or disappear, and lines may cross. By specifying preserve_topology=True
, the result will have the same dimension and number of components as the input; this is significantly slower, however.
Please login to continue.