PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ newFace()

static Face * newFace ( const GEOSGeometry *  g)
static

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

1153 {
1154  Face* f = lwalloc(sizeof(Face));
1155  f->geom = g;
1156  f->env = GEOSEnvelope(f->geom);
1157  GEOSArea(f->env, &f->envarea);
1158  f->parent = NULL;
1159  /* lwnotice("Built Face with area %g and %d holes", f->envarea, GEOSGetNumInteriorRings(f->geom)); */
1160  return f;
1161 }
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: