geos.GEOSBuffer ⇒ GEOSGeometry
⏏
Buffer a geometry.
Kind: global property of geos
Returns: GEOSGeometry
- A GEOSGeometry of the buffered result. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The input geometry to be buffered. |
width | number | The distance by which to expand the geometry (or contract) if the value is negative. |
quadsegs | number | The number of segments per quadrant to generate. More segments provides a more "precise" buffer at the expense of size. |
geos.GEOSBufferParams_create_r ⇒ GEOSBufferParams
⏏
Create a default GEOSBufferParams object for controlling the shape of buffered generated by GEOSBuffer.
Kind: global property of geos
Returns: GEOSBufferParams
- A newly allocated GEOSBufferParams. NULL on exception. Caller is responsible for freeing with GEOSBufferParams_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
geos.GEOSBufferParams_destroy ⇒ null
⏏
Destroy a GEOSBufferParams and free all associated memory.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
parms | GEOSBufferParams | The object to destroy. |
geos.GEOSBufferParams_destroy_r ⇒ null
⏏
Destroy a GEOSBufferParams and free all associated memory.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
parms | GEOSBufferParams | The object to destroy. |
geos.GEOSBufferParams_setEndCapStyle ⇒ number
⏏
Set the end cap type of a GEOSBufferParams to the desired style, which must be one enumerated in GEOSBufCapStyles.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSBufferParams | - |
style | number | - |
geos.GEOSBufferParams_setEndCapStyle_r ⇒ number
⏏
Set the end cap type of a GEOSBufferParams to the desired style, which must be one enumerated in GEOSBufCapStyles.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSBufferParams | - |
style | number | - |
geos.GEOSBufferParams_setJoinStyle ⇒ number
⏏
Set the join type of a GEOSBufferParams to the desired style, which must be one enumerated in GEOSBufJoinStyles.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSBufferParams | - |
joinStyle | number | - |
geos.GEOSBufferParams_setJoinStyle_r ⇒ number
⏏
Set the join type of a GEOSBufferParams to the desired style, which must be one enumerated in GEOSBufJoinStyles.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSBufferParams | - |
joinStyle | number | - |
geos.GEOSBufferParams_setMitreLimit ⇒ number
⏏
Set the mitre limit of a GEOSBufferParams to the desired size. For acute angles, a mitre join can extend very very far from the input geometry, which is probably not desired. The mitre limit places an upper bound on that.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSBufferParams | The GEOSBufferParams to operate on |
mitreLimit | number | The limit to set |
geos.GEOSBufferParams_setMitreLimit_r ⇒ number
⏏
Set the mitre limit of a GEOSBufferParams to the desired size. For acute angles, a mitre join can extend very very far from the input geometry, which is probably not desired. The mitre limit places an upper bound on that.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSBufferParams | The GEOSBufferParams to operate on |
mitreLimit | number | The limit to set |
geos.GEOSBufferParams_setQuadrantSegments ⇒ number
⏏
Set the number of segments to use to stroke each quadrant of circular arcs generated by the buffering process. More segments means a smoother output, but with larger size.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSBufferParams | The GEOSBufferParams to operate on |
quadSegs | number | Number of segments per quadrant |
geos.GEOSBufferParams_setQuadrantSegments_r ⇒ number
⏏
Set the number of segments to use to stroke each quadrant of circular arcs generated by the buffering process. More segments means a smoother output, but with larger size.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSBufferParams | The GEOSBufferParams to operate on |
quadSegs | number | Number of segments per quadrant |
geos.GEOSBufferParams_setSingleSided ⇒ number
⏏
Sets whether the computed buffer should be single-sided. A single-sided buffer is constructed on only one side of each input line.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSBufferParams | The GEOSBufferParams to operate on |
singleSided | number | Set to 1 for single-sided output 0 otherwise |
geos.GEOSBufferParams_setSingleSided_r ⇒ number
⏏
Sets whether the computed buffer should be single-sided. A single-sided buffer is constructed on only one side of each input line.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSBufferParams | The GEOSBufferParams to operate on |
singleSided | number | Set to 1 for single-sided output 0 otherwise |
geos.GEOSBufferWithParams ⇒ GEOSGeometry
⏏
Generates a buffer using the special parameters in the GEOSBufferParams
Kind: global property of geos
Returns: GEOSGeometry
- The buffered geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The geometry to buffer |
p | GEOSBufferParams | The parameters to apply to the buffer process |
width | number | The buffer distance |
geos.GEOSBufferWithParams_r ⇒ GEOSGeometry
⏏
Generates a buffer using the special parameters in the GEOSBufferParams
Kind: global property of geos
Returns: GEOSGeometry
- The buffered geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The geometry to buffer |
p | GEOSBufferParams | The parameters to apply to the buffer process |
width | number | The buffer distance |
geos.GEOSBufferWithStyle ⇒ GEOSGeometry
⏏
Generate a buffer using the provided style parameters.
Kind: global property of geos
Returns: GEOSGeometry
- The buffered geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The geometry to buffer |
width | number | Width of the buffer |
quadsegs | number | Number of segments per quadrant |
endCapStyle | number | See GEOSBufCapStyles |
joinStyle | number | See GEOSBufJoinStyles |
mitreLimit | number | See GEOSBufferParams_setMitreLimit |
geos.GEOSBufferWithStyle_r ⇒ GEOSGeometry
⏏
Generate a buffer using the provided style parameters.
Kind: global property of geos
Returns: GEOSGeometry
- The buffered geometry, or NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The geometry to buffer |
width | number | Width of the buffer |
quadsegs | number | Number of segments per quadrant |
endCapStyle | number | See GEOSBufCapStyles |
joinStyle | number | See GEOSBufJoinStyles |
mitreLimit | number | See GEOSBufferParams_setMitreLimit |
geos.GEOSBuffer_r ⇒ GEOSGeometry
⏏
Buffer a geometry.
Kind: global property of geos
Returns: GEOSGeometry
- A GEOSGeometry of the buffered result. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The input geometry to be buffered. |
width | number | The distance by which to expand the geometry (or contract) if the value is negative. |
quadsegs | number | The number of segments per quadrant to generate. More segments provides a more "precise" buffer at the expense of size. |