geos.GEOSDistance ⇒ number
⏏
Calculate the distance between two geometries.
Kind: global property of geos
Returns: number
- 1 on success, 0 on exception.
Param | Type | Description |
---|---|---|
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | NumberPointer | Pointer to be filled in with distance result |
geos.GEOSDistanceIndexed ⇒ number
⏏
Calculate the distance between two geometries, using the indexed facet distance, which first indexes the geometries internally, then calculates the distance. Useful when one or both geometries is very large.
Kind: global property of geos
Returns: number
- 1 on success, 0 on exception.
Param | Type | Description |
---|---|---|
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | NumberPointer | Pointer to be filled in with distance result |
geos.GEOSDistanceIndexed_r ⇒ number
⏏
Calculate the distance between two geometries, using the indexed facet distance, which first indexes the geometries internally, then calculates the distance. Useful when one or both geometries is very large.
Kind: global property of geos
Returns: number
- 1 on success, 0 on exception.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | NumberPointer | Pointer to be filled in with distance result |
geos.GEOSDistanceWithin ⇒ number
⏏
Test whether the distance between two geometries is within the given dist.
Kind: global property of geos
Returns: number
- 1 on true, 0 on false, 2 on exception
Param | Type | Description |
---|---|---|
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | number | The max distance |
geos.GEOSDistanceWithin_r ⇒ number
⏏
Test whether the distance between two geometries is within the given dist.
Kind: global property of geos
Returns: number
- 1 on true, 0 on false, 2 on exception
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | number | The max distance |
geos.GEOSDistance_r ⇒ number
⏏
Calculate the distance between two geometries.
Kind: global property of geos
Returns: number
- 1 on success, 0 on exception.
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
dist | NumberPointer | Pointer to be filled in with distance result |