PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 251 of file lwgeom.c.

References MULTIPOLYGONTYPE, and LWGEOM::type.

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

252 {
253  if ( lwgeom == NULL ) return NULL;
254  if ( lwgeom->type == MULTIPOLYGONTYPE )
255  return (LWMPOLY *)lwgeom;
256  else return NULL;
257 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
uint8_t type
Definition: liblwgeom.h:398
Here is the caller graph for this function: