Skip to content

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.

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
distNumberPointerPointer 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.

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
densifyFracnumberThe largest % of the overall line length that any given two-point segment should be
distNumberPointerPointer 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.

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
densifyFracnumberThe largest % of the overall line length that any given two-point segment should be
distNumberPointerPointer 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.

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry
distNumberPointerPointer to be filled in with distance result