Skip to content
On this page

geos.GEOSNearestPoints ⇒ string

Compute the nearest points between two geometries.

Kind: Exported member
Returns: string - A JSON string representing a GEOSGeometry object containing two points, or null on exception

ParamTypeDescription
g1stringA JSON string representing a GEOSGeometry object
g2stringA JSON string representing a GEOSGeometry object

geos.GEOSNearestPoints_r ⇒ string

Returns a GEOSCoordSequence of the nearest points between two geometries.

Kind: Exported member
Returns: string - A WKT string representing the GEOSCoordSequence of the nearest points.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1stringThe first geometry as a WKT string.
g2stringThe second geometry as a WKT string.