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

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

1148 {
1149  Face* f = lwalloc(sizeof(Face));
1150  f->geom = g;
1151  f->env = GEOSEnvelope(f->geom);
1152  GEOSArea(f->env, &f->envarea);
1153  f->parent = NULL;
1154  /* lwnotice("Built Face with area %g and %d holes", f->envarea, GEOSGetNumInteriorRings(f->geom)); */
1155  return f;
1156 }
const GEOSGeometry * geom
GEOSGeometry * env
struct Face_t * parent
void * lwalloc(size_t size)
Definition: lwutil.c:229

Here is the call graph for this function:

Here is the caller graph for this function: