geos.GEOSMakeValid ⇒ GEOSGeometry
⏏
Repair an invalid geometry, returning a valid output.
Kind: global property of geos
Returns: GEOSGeometry
- The repaired geometry. Caller must free with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | The geometry to repair |
geos.GEOSMakeValidParams_create_r ⇒ GEOSMakeValidParams
⏏
Create a GEOSMakeValidParams to hold the desired parameters to control the algorithm and behavior of the validation process.
Kind: global property of geos
Returns: GEOSMakeValidParams
- a parameter object
Param | Type | Description |
---|---|---|
extHandle | GEOSContextHandle_t | - |
geos.GEOSMakeValidParams_destroy ⇒ null
⏏
Destroy a GEOSMakeValidParams.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
parms | GEOSMakeValidParams | the object to destroy |
geos.GEOSMakeValidParams_destroy_r ⇒ null
⏏
Destroy a GEOSMakeValidParams.
Kind: global property of geos
Returns: null
- void
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
parms | GEOSMakeValidParams | the object to destroy |
geos.GEOSMakeValidParams_setKeepCollapsed ⇒ number
⏏
When this parameter is nn-zero, the GEOS_MAKE_VALID_STRUCTURE method will keep components that have collapsed into a lower dimensionality. For example, a ring collapsing to a line, or a line collapsing to a point.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSMakeValidParams | - |
keepCollapsed | number | - |
geos.GEOSMakeValidParams_setKeepCollapsed_r ⇒ number
⏏
When this parameter is nn-zero, the GEOS_MAKE_VALID_STRUCTURE method will keep components that have collapsed into a lower dimensionality. For example, a ring collapsing to a line, or a line collapsing to a point.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSMakeValidParams | - |
style | number | - |
geos.GEOSMakeValidParams_setMethod ⇒ number
⏏
Set the GEOSMakeValidMethods to use in making the geometry valid.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
p | GEOSMakeValidParams | - |
method | GEOSMakeValidMethods | - |
geos.GEOSMakeValidParams_setMethod_r ⇒ number
⏏
Set the GEOSMakeValidMethods to use in making the geometry valid.
Kind: global property of geos
Returns: number
- 0 on exception, 1 on success.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
p | GEOSMakeValidParams | - |
method | GEOSMakeValidMethods | - |
geos.GEOSMakeValidWithParams ⇒ GEOSGeometry
⏏
Repair an invalid geometry, returning a valid output, using the indicated GEOSMakeValidMethods algorithm and options.
Kind: global property of geos
Returns: GEOSGeometry
- A repaired geometry. Caller must free with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | is the geometry to test. |
makeValidParams | GEOSMakeValidParams | is a GEOSMakeValidParams with the desired parameters set on it. |
geos.GEOSMakeValidWithParams_r ⇒ GEOSGeometry
⏏
Repair an invalid geometry, returning a valid output, using the indicated GEOSMakeValidMethods algorithm and options.
Kind: global property of geos
Returns: GEOSGeometry
- A repaired geometry. Caller must free with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | is the geometry to test. |
makeValidParams | GEOSMakeValidParams | is a GEOSMakeValidParams with the desired parameters set on it. |
geos.GEOSMakeValid_r ⇒ GEOSGeometry
⏏
Repair an invalid geometry, returning a valid output.
Kind: global property of geos
Returns: GEOSGeometry
- The repaired geometry. Caller must free with GEOSGeom_destroy().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g | GEOSGeometry | The geometry to repair |