PostGIS  2.1.10dev-r@@SVN_REVISION@@
static Face * newFace ( const GEOSGeometry *  g)
static

Definition at line 798 of file liblwgeom/lwgeom_geos.c.

References Face_t::env, Face_t::envarea, Face_t::geom, lwalloc(), and Face_t::parent.

Referenced by LWGEOM_GEOS_buildArea().

799 {
800  Face* f = lwalloc(sizeof(Face));
801  f->geom = g;
802  f->env = GEOSEnvelope(f->geom);
803  GEOSArea(f->env, &f->envarea);
804  f->parent = NULL;
805  /* lwnotice("Built Face with area %g and %d holes", f->envarea, GEOSGetNumInteriorRings(f->geom)); */
806  return f;
807 }
const GEOSGeometry * geom
GEOSGeometry * env
struct Face_t * parent
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: