PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 250 of file lwgeom.c.

References MULTIPOLYGONTYPE, and LWGEOM::type.

Referenced by geography_centroid(), pip_short_circuit(), rt_raster_surface(), and ShpLoaderGenerateShapeRow().

251 {
252  if ( lwgeom == NULL ) return NULL;
253  if ( lwgeom->type == MULTIPOLYGONTYPE )
254  return (LWMPOLY *)lwgeom;
255  else return NULL;
256 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
uint8_t type
Definition: liblwgeom.h:395

Here is the caller graph for this function: