PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 260 of file lwgeom.c.

261 {
262  if ( lwgeom == NULL ) return NULL;
263  if ( lwgeom->type == MULTIPOLYGONTYPE )
264  return (LWMPOLY *)lwgeom;
265  else return NULL;
266 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:107
uint8_t type
Definition: liblwgeom.h:462

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: