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.
85{
87 {
97 {
99
101 int i;
102 for (i = p->
nrings - 1; i >= 0; i--)
104
105 return n;
106 }
107 default:
109 }
110
111 return NULL;
112}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
LWTRIANGLE * lwgeom_as_lwtriangle(const LWGEOM *lwgeom)
LWCIRCSTRING * lwgeom_as_lwcircstring(const LWGEOM *lwgeom)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
void void lwerror(const char *fmt,...) __attribute__((format(printf
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(const 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().