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

Definition at line 143 of file lwgeom.c.

References lwgeom_is_collection().

Referenced by _lwt_AddLineEdge(), _lwt_EdgeSplit(), _lwt_split_by_nodes(), 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(), lwt_AddLine(), RASTER_setPixelValuesGeomval(), test_lwgeom_split(), wkt_parser_collection_add_geom(), and wkt_parser_collection_finalize().

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:991

Here is the call graph for this function:

Here is the caller graph for this function: