Return a pointer to the first of one or more LISTNODEs holding the POINTARRAYs of a geometry.
Will not handle GeometryCollections.
Definition at line 84 of file lwiterator.c.
102 for (i = p->
nrings - 1; i >= 0; i--)
110 lwerror(
"Unsupported geometry type for lwpointiterator");
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
LWTRIANGLE * lwgeom_as_lwtriangle(const LWGEOM *lwgeom)
LWCIRCSTRING * lwgeom_as_lwcircstring(const LWGEOM *lwgeom)
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static LISTNODE * prepend_node(void *g, LISTNODE *front)
References CIRCSTRINGTYPE, LINETYPE, lwerror(), lwgeom_as_lwcircstring(), lwgeom_as_lwline(), lwgeom_as_lwpoint(), lwgeom_as_lwpoly(), lwgeom_as_lwtriangle(), lwgeom_get_type(), LWPOLY::nrings, POINTTYPE, POLYGONTYPE, prepend_node(), LWPOLY::rings, and TRIANGLETYPE.
Referenced by lwpointiterator_advance().