Skip to content
On this page

geos.GEOSLength ⇒ number

Calculate the length of a geometry.

Kind: Exported member
Returns: number - 1 on success, 0 on exception

ParamTypeDescription
gnumberA pointer to a GEOSGeometry object
lengthnumberA pointer to be filled in with length result

geos.GEOSLength_r ⇒ number

Calculate the length of a geometry using a custom context handle.

Kind: Exported member
Returns: number - 1 on success, 0 on exception

ParamTypeDescription
handlenumberA GEOSContextHandle_t object
gnumberA pointer to a GEOSGeometry object
lengthnumberA pointer to be filled in with length result