Definition at line 432 of file lwcollection.c.
436 if (!col)
return NULL;
458 "Only POLYGON, LINESTRING and POINT are supported by "
459 "lwcollection_extract. %s requested.",
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
uint8_t lwtype_multitype(uint8_t type)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define FLAGS_GET_M(flags)
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
static int lwcollection_extract_recursive(const LWCOLLECTION *col, uint32_t type, LWCOLLECTION *col_out)
static uint32_t lwcollection_largest_dimension(const LWCOLLECTION *col)
Examines contents of collection and finds the largest coordinate dimension of all components.
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int32_t srid, char hasz, char hasm)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
References COLLECTIONTYPE, LWCOLLECTION::flags, FLAGS_GET_M, FLAGS_GET_Z, LINETYPE, lwcollection_as_lwgeom(), lwcollection_construct_empty(), lwcollection_extract_recursive(), lwcollection_largest_dimension(), lwerror(), lwgeom_add_bbox(), lwtype_multitype(), lwtype_name(), POINTTYPE, POLYGONTYPE, LWCOLLECTION::srid, and ovdump::type.
Referenced by _lwt_AddLineEdge(), lwgeom_to_basic_type(), ST_CollectionExtract(), and test_lwcollection_extract().