PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgis_geometry_polygonize_finalfn()

Datum pgis_geometry_polygonize_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 225 of file lwgeom_accum.c.

226 {
228  Datum result = 0;
229  Datum geometry_array = 0;
230 
231  if (PG_ARGISNULL(0))
232  PG_RETURN_NULL(); /* returns null iff no input values */
233 
234  p = (CollectionBuildState*) PG_GETARG_POINTER(0);
235 
236  geometry_array = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
237  result = PGISDirectFunctionCall1( polygonize_garray, geometry_array );
238  if (!result)
239  PG_RETURN_NULL();
240 
241  PG_RETURN_DATUM(result);
242 }
Datum polygonize_garray(PG_FUNCTION_ARGS)
Datum pgis_accum_finalfn(CollectionBuildState *state, MemoryContext mctx, FunctionCallInfo fcinfo)
Datum PGISDirectFunctionCall1(PGFunction func, Datum arg1)
A modified version of PostgreSQL's DirectFunctionCall1 which allows NULL results; this is required fo...
Definition: lwgeom_accum.c:329

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

Here is the call graph for this function: