PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 183 of file lwgeom.c.

References MULTIPOLYGONTYPE, and LWGEOM::type.

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

184 {
185  if ( lwgeom == NULL ) return NULL;
186  if ( lwgeom->type == MULTIPOLYGONTYPE )
187  return (LWMPOLY *)lwgeom;
188  else return NULL;
189 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
uint8_t type
Definition: liblwgeom.h:395
Here is the caller graph for this function: