PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 219 of file lwgeom.c.

References MULTIPOLYGONTYPE, and LWGEOM::type.

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

220 {
221  if ( lwgeom == NULL ) return NULL;
222  if ( lwgeom->type == MULTIPOLYGONTYPE )
223  return (LWMPOLY *)lwgeom;
224  else return NULL;
225 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:90
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: