PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 243 of file lwgeom.c.

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

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: