PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ newFace()

static Face * newFace ( const GEOSGeometry *  g)
static

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

907 {
908  Face* f = lwalloc(sizeof(Face));
909  f->geom = g;
910  f->env = GEOSEnvelope(f->geom);
911  GEOSArea(f->env, &f->envarea);
912  f->parent = NULL;
913  return f;
914 }
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: