Skip to content

geos.GEOSOffsetCurve ⇒ GEOSGeometry

Generates offset curve line(s) for a geometry. Handles all geometry types as input.

Kind: global property of geos
Returns: GEOSGeometry - The offset geometry. Returns NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometryThe linear geometry to offset from
widthnumberDistance to offset from the curve. Negative for a right-side offset. Positive for a left-side offset.
quadsegsnumberNumber of segments per quadrant
joinStylenumberSee GEOSBufJoinStyles
mitreLimitnumberSee GEOSBufferParams_setMitreLimit

geos.GEOSOffsetCurve_r ⇒ GEOSGeometry

Generates offset curve line(s) for a geometry. Handles all geometry types as input.

Kind: global property of geos
Returns: GEOSGeometry - The offset geometry. Returns NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe linear geometry to offset from
widthnumberDistance to offset from the curve. Negative for a right-side offset. Positive for a left-side offset.
quadsegsnumberNumber of segments per quadrant
joinStylenumberSee GEOSBufJoinStyles
mitreLimitnumberSee GEOSBufferParams_setMitreLimit