Skip to content
On this page

geos.GEOSPointOnSurface ⇒ number

Computes a point that lies on the surface of a geometry.

Kind: Exported member
Returns: number - A pointer to a GEOSGeometry object representing a point on the surface of g, or null if an error occurs.

ParamTypeDescription
gnumberA pointer to a GEOSGeometry object.

geos.GEOSPointOnSurface_r ⇒ number

Computes a point that lies on the surface of a geometry, using a thread-safe context handle.

Kind: Exported member
Returns: number - A pointer to a GEOSGeometry object representing a point on the surface of g, or null if an error occurs.

ParamTypeDescription
handlenumberA pointer to a GEOSContextHandle_t object.
gnumberA pointer to a GEOSGeometry object.