geos.GEOSFrechetDistance ⇒ number
⏏
Calculate the Frechet distance between two geometries, a similarity measure for linear features.
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.GEOSFrechetDistanceDensify ⇒ number
⏏
Calculate the Frechet distance between two geometries, a similarity measure for linear features. The inputs can be densified to provide a more accurate result.
Kind: global property of geos
Returns: number
- 1 on success, 0 on exception.
Param | Type | Description |
---|---|---|
g1 | GEOSGeometry | Input geometry |
g2 | GEOSGeometry | Input geometry |
densifyFrac | number | The largest % of the overall line length that any given two-point segment should be |
dist | NumberPointer | Pointer to be filled in with distance result |
geos.GEOSFrechetDistanceDensify_r ⇒ number
⏏
Calculate the Frechet distance between two geometries, a similarity measure for linear features. The inputs can be densified to provide a more accurate result.
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 |
densifyFrac | number | The largest % of the overall line length that any given two-point segment should be |
dist | NumberPointer | Pointer to be filled in with distance result |
geos.GEOSFrechetDistance_r ⇒ number
⏏
Calculate the Frechet distance between two geometries, a similarity measure for linear features.
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 |