Skip to content

geos.GEOSNearestPoints ⇒ GEOSCoordSequence

The closest points of the two geometries. The first point comes from g1 geometry and the second point comes from g2.

Kind: global property of geos
Returns: GEOSCoordSequence - A coordinate sequence with the two points, or NULL on exception. Caller must free with GEOSCoordSeq_destroy().

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry

geos.GEOSNearestPoints_r ⇒ GEOSCoordSequence

The closest points of the two geometries. The first point comes from g1 geometry and the second point comes from g2.

Kind: global property of geos
Returns: GEOSCoordSequence - A coordinate sequence with the two points, or NULL on exception. Caller must free with GEOSCoordSeq_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry