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.
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().
102 for (i = p->
nrings - 1; i >= 0; i--)
110 lwerror(
"Unsupported geometry type for lwpointiterator");
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
static LISTNODE * prepend_node(void *g, LISTNODE *front)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
LWCIRCSTRING * lwgeom_as_lwcircstring(const LWGEOM *lwgeom)
LWTRIANGLE * lwgeom_as_lwtriangle(const LWGEOM *lwgeom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.