PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ initiate_effectivearea()

EFFECTIVE_AREAS * initiate_effectivearea ( const POINTARRAY inpts)

Definition at line 30 of file effectivearea.c.

31{
32 LWDEBUG(2, "Entered initiate_effectivearea");
34 ea=lwalloc(sizeof(EFFECTIVE_AREAS));
35 ea->initial_arealist = lwalloc(inpts->npoints*sizeof(areanode));
36 ea->res_arealist = lwalloc(inpts->npoints*sizeof(double));
37 ea->inpts=inpts;
38 return ea;
39}
void * lwalloc(size_t size)
Definition lwutil.c:227
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:101
areanode * initial_arealist
double * res_arealist
const POINTARRAY * inpts
Structure to hold pointarray and its arealist.
uint32_t npoints
Definition liblwgeom.h:427
This structure is placed in an array with one member per point.

References EFFECTIVE_AREAS::initial_arealist, EFFECTIVE_AREAS::inpts, lwalloc(), LWDEBUG, POINTARRAY::npoints, and EFFECTIVE_AREAS::res_arealist.

Referenced by do_test_lwgeom_effectivearea(), and ptarray_set_effective_area().

Here is the call graph for this function:
Here is the caller graph for this function: