Skip to content
On this page

geos.GEOSisEmpty ⇒ number

Tests whether a geometry is empty.

Kind: Exported member
Returns: number - 1 if the geometry is empty, 0 if it is not, or 2 on exception.

ParamTypeDescription
gnumberThe geometry to test.

geos.GEOSisEmpty_r ⇒ number

Tests whether a geometry is empty with a GEOS context handle.

Kind: Exported member
Returns: number - 1 if the geometry is empty, 0 if it is not, or 2 on exception.

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
gnumberThe geometry to test.