PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 242 of file lwgeom.c.

243 {
244  if ( lwgeom == NULL ) return NULL;
245  if ( lwgeom->type == MULTIPOLYGONTYPE )
246  return (LWMPOLY *)lwgeom;
247  else return NULL;
248 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:121
uint8_t type
Definition: liblwgeom.h:448

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: