PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum pgis_geometry_polygonize_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 240 of file lwgeom_accum.c.

References pgis_accum_finalfn(), polygonize_garray(), and result.

241 {
242  pgis_abs *p;
243  Datum result = 0;
244  Datum geometry_array = 0;
245 
246  if (PG_ARGISNULL(0))
247  PG_RETURN_NULL(); /* returns null iff no input values */
248 
249  p = (pgis_abs*) PG_GETARG_POINTER(0);
250 
251  geometry_array = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
252  result = DirectFunctionCall1( polygonize_garray, geometry_array );
253 
254  PG_RETURN_DATUM(result);
255 }
Datum pgis_accum_finalfn(pgis_abs *p, MemoryContext mctx, FunctionCallInfo fcinfo)
The final function rescues the built array from the side memory context using the PostgreSQL built-in...
Definition: lwgeom_accum.c:143
char ** result
Definition: liblwgeom.h:218
To pass the internal ArrayBuildState pointer between the transfn and finalfn we need to wrap it into ...
Definition: lwgeom_accum.c:61
Datum polygonize_garray(PG_FUNCTION_ARGS)

Here is the call graph for this function: