PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_as_lwcollection()

LWCOLLECTION * lwgeom_as_lwcollection ( const LWGEOM lwgeom)
extern

Definition at line 233 of file lwgeom.c.

234{
235 if ( lwgeom == NULL ) return NULL;
236 if ( lwgeom_is_collection(lwgeom) )
237 return (LWCOLLECTION*)lwgeom;
238 else return NULL;
239}
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM contains sub-geometries or not This basically just checks that the struct ...
Definition lwgeom.c:1097

References lwgeom_is_collection().

Referenced by _lwt_AddLine(), _lwt_AddLineEdge(), _lwt_EdgeSplit(), _lwt_SnapEdgeToExistingNode(), _lwt_split_by_nodes(), lw_dist2d_recursive(), lw_dist3d_recursive(), lwcollection_build_buffer(), lwcollection_extract_recursive(), lwcollection_offsetcurve(), lwcollection_split(), lwgeom_count_geometries(), lwgeom_extract_geometry_n(), lwgeom_is_closed(), lwgeom_ngeoms(), 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().

Here is the call graph for this function:
Here is the caller graph for this function: