Skip to content
On this page

geos.GEOSPrecisionRules ⏏

Controls the behavior of GEOSGeom_setPrecision() when altering the precision of a geometry.

NameValueDescription
GEOS_PREC_VALID_OUTPUT0The output is always valid. Collapsed geometry elements (including both polygons and lines) are removed.
GEOS_PREC_NO_TOPO1Precision reduction is performed pointwise. Output geometry may be invalid due to collapse or self-intersection. (This might be better called "GEOS_PREC_POINTWISE" - the current name is historical.)
GEOS_PREC_KEEP_COLLAPSED2Like the default mode, except that collapsed linear geometry elements are preserved. Collapsed polygonal input elements are removed.

Kind: Exported member