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

Definition at line 1043 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().

1044 {
1045  Face* f = lwalloc(sizeof(Face));
1046  f->geom = g;
1047  f->env = GEOSEnvelope(f->geom);
1048  GEOSArea(f->env, &f->envarea);
1049  f->parent = NULL;
1050  /* lwnotice("Built Face with area %g and %d holes", f->envarea, GEOSGetNumInteriorRings(f->geom)); */
1051  return f;
1052 }
const GEOSGeometry * geom
GEOSGeometry * env
struct Face_t * parent
void * lwalloc(size_t size)
Definition: lwutil.c:199

Here is the call graph for this function:

Here is the caller graph for this function: