PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoly()

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:75
uint8_t type
Definition: liblwgeom.h:380
Here is the caller graph for this function: