PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgis_geometry_makeline_finalfn()

Datum pgis_geometry_makeline_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 250 of file lwgeom_accum.c.

251 {
253  Datum result = 0;
254  Datum geometry_array = 0;
255 
256  if (PG_ARGISNULL(0))
257  PG_RETURN_NULL(); /* returns null iff no input values */
258 
259  p = (CollectionBuildState*) PG_GETARG_POINTER(0);
260 
261  geometry_array = pgis_accum_finalfn(p, CurrentMemoryContext, fcinfo);
262  result = PGISDirectFunctionCall1( LWGEOM_makeline_garray, geometry_array );
263  if (!result)
264  PG_RETURN_NULL();
265 
266  PG_RETURN_DATUM(result);
267 }
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
Datum LWGEOM_makeline_garray(PG_FUNCTION_ARGS)

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

Here is the call graph for this function: