PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ newFace()

static Face * newFace ( const GEOSGeometry *  g)
static

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

1124 {
1125  Face* f = lwalloc(sizeof(Face));
1126  f->geom = g;
1127  f->env = GEOSEnvelope(f->geom);
1128  GEOSArea(f->env, &f->envarea);
1129  f->parent = NULL;
1130  /* lwnotice("Built Face with area %g and %d holes", f->envarea, GEOSGetNumInteriorRings(f->geom)); */
1131  return f;
1132 }
const GEOSGeometry * geom
GEOSGeometry * env
struct Face_t * parent
void * lwalloc(size_t size)
Definition: lwutil.c:227
Here is the call graph for this function:
Here is the caller graph for this function: