Skip to content

geos.GEOSHausdorffDistance ⇒ number

Calculate the Hausdorff distance between two geometries. Hausdorff distance is the largest distance between two geometries.

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.GEOSHausdorffDistanceDensify ⇒ number

Calculate a more precise Hausdorff distance between two geometries, by densifying the inputs before computation. Hausdorff distance is the largest distance between two geometries.

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.GEOSHausdorffDistanceDensify_r ⇒ number

Calculate a more precise Hausdorff distance between two geometries, by densifying the inputs before computation. Hausdorff distance is the largest distance between two geometries.

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.GEOSHausdorffDistance_r ⇒ number

Calculate the Hausdorff distance between two geometries. Hausdorff distance is the largest distance between two geometries.

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