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--)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
LWTRIANGLE * lwgeom_as_lwtriangle(const LWGEOM *lwgeom)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
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 uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
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(), lwtype_name(), LWPOLY::nrings, POINTTYPE, POLYGONTYPE, prepend_node(), LWPOLY::rings, TRIANGLETYPE, and LWGEOM::type.
Referenced by lwpointiterator_advance().