PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ newFace()

static Face * newFace ( const GEOSGeometry *  g)
static

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

985 {
986  Face* f = lwalloc(sizeof(Face));
987  f->geom = g;
988  f->env = GEOSEnvelope(f->geom);
989  GEOSArea(f->env, &f->envarea);
990  f->parent = NULL;
991  return f;
992 }
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: