PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWPOLY* lwgeom_as_lwpoly ( const LWGEOM lwgeom)

Definition at line 125 of file lwgeom.c.

References POLYGONTYPE, and LWGEOM::type.

Referenced by geometry_to_polygon(), lwgeom_as_curve(), LWGEOM_dump_rings(), LWGEOM_dumppoints(), LWGEOM_exteriorring_polygon(), LWGEOM_interiorringn_polygon(), LWGEOM_numinteriorrings_polygon(), lwgeom_segmentize_sphere(), lwt_GetFaceEdges(), rt_raster_gdal_polygonize(), ShpLoaderGenerateShapeRow(), test_ptarray_isccw(), test_raster_convex_hull(), test_raster_envelope_geom(), test_tree_circ_pip2(), and wkt_parser_polygon_add_ring().

126 {
127  if ( lwgeom == NULL ) return NULL;
128  if ( lwgeom->type == POLYGONTYPE )
129  return (LWPOLY *)lwgeom;
130  else return NULL;
131 }
#define POLYGONTYPE
Definition: liblwgeom.h:72
uint8_t type
Definition: liblwgeom.h:380

Here is the caller graph for this function: