PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 251 of file lwgeom.c.

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:90
uint8_t type
Definition: liblwgeom.h:399

References MULTIPOLYGONTYPE, and LWGEOM::type.

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

Here is the caller graph for this function: