PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWCOLLECTION* lwgeom_as_lwcollection ( const LWGEOM lwgeom)

Definition at line 143 of file lwgeom.c.

References lwgeom_is_collection().

Referenced by lw_dist2d_recursive(), lw_dist3d_recursive(), lwcollection_build_buffer(), lwcollection_split(), LWGEOM_geometryn_collection(), lwgeom_is_closed(), lwgeom_ngeoms(), LWGEOM_numgeometries_collection(), lwgeom_segmentize_sphere(), lwgeom_set_srid(), lwgeom_subgeom(), lwline_split_by_line(), RASTER_setPixelValuesGeomval(), and wkt_parser_collection_add_geom().

144 {
145  if ( lwgeom == NULL ) return NULL;
146  if ( lwgeom_is_collection(lwgeom) )
147  return (LWCOLLECTION*)lwgeom;
148  else return NULL;
149 }
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM can contain sub-geometries or not.
Definition: lwgeom.c:947

Here is the call graph for this function:

Here is the caller graph for this function: