Skip to content
On this page

geos.GEOSReverse ⇒ number

Reverses the order of the coordinates in a geometry.

Kind: Exported member
Returns: number - A pointer to a geometry with reversed coordinates, or NULL on exception.
See: https://libgeos.org/doxygen/classgeos_1_1geom_1_1Geometry.html

ParamTypeDescription
gnumberThe input geometry pointer, which must be a point, linestring, linearring or polygon.

geos.GEOSReverse_r ⇒ number

Reverses the order of the coordinates in a geometry, using a GEOS context handle.

Kind: Exported member
Returns: number - A pointer to a geometry with reversed coordinates, or NULL on exception.
See: https://libgeos.org/doxygen/geos__c_8h_source.html

ParamTypeDescription
handlenumberThe GEOS context pointer handle.
gnumberThe input geometry pointer, which must be a point, linestring, linearring or polygon.