PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWMPOLY* lwgeom_as_lwmpoly ( const LWGEOM lwgeom)

Definition at line 170 of file lwgeom.c.

References MULTIPOLYGONTYPE, and LWGEOM::type.

Referenced by rt_raster_surface(), and ShpLoaderGenerateShapeRow().

171 {
172  if ( lwgeom == NULL ) return NULL;
173  if ( lwgeom->type == MULTIPOLYGONTYPE )
174  return (LWMPOLY *)lwgeom;
175  else return NULL;
176 }
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:65
uint8_t type
Definition: liblwgeom.h:352

Here is the caller graph for this function: