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().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The linear geometry to offset from |
width | number | Distance to offset from the curve. Negative for a right-side offset. Positive for a left-side offset. |
quadsegs | number | Number of segments per quadrant |
joinStyle | number | See GEOSBufJoinStyles |
mitreLimit | number | See 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The linear geometry to offset from |
width | number | Distance to offset from the curve. Negative for a right-side offset. Positive for a left-side offset. |
quadsegs | number | Number of segments per quadrant |
joinStyle | number | See GEOSBufJoinStyles |
mitreLimit | number | See GEOSBufferParams_setMitreLimit |