PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcollection()

LWCOLLECTION* lwgeom_as_lwcollection ( const LWGEOM lwgeom)

Definition at line 224 of file lwgeom.c.

References lwgeom_is_collection().

Referenced by _lwt_AddLine(), _lwt_AddLineEdge(), _lwt_EdgeSplit(), _lwt_split_by_nodes(), lw_dist2d_recursive(), lw_dist3d_recursive(), lwcollection_build_buffer(), lwcollection_offsetcurve(), lwcollection_split(), LWGEOM_geometryn_collection(), lwgeom_is_closed(), lwgeom_ngeoms(), LWGEOM_numgeometries_collection(), lwgeom_offsetcurve(), lwgeom_segmentize_sphere(), lwgeom_set_srid(), lwgeom_split_wrapx(), lwgeom_subgeom(), lwline_split_by_line(), RASTER_setPixelValuesGeomval(), test_lwgeom_split(), wkt_parser_collection_add_geom(), and wkt_parser_collection_finalize().

225 {
226  if ( lwgeom == NULL ) return NULL;
227  if ( lwgeom_is_collection(lwgeom) )
228  return (LWCOLLECTION*)lwgeom;
229  else return NULL;
230 }
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM can contain sub-geometries or not.
Definition: lwgeom.c:1085
Here is the call graph for this function:
Here is the caller graph for this function: