PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ postgis_sfcgal_noop()

Datum postgis_sfcgal_noop ( PG_FUNCTION_ARGS  )

Definition at line 533 of file postgis/lwgeom_sfcgal.c.

534 {
535  GSERIALIZED *input, *output;
536  LWGEOM *geom, *result;
537 
539 
540  input = PG_GETARG_GSERIALIZED_P(0);
541  geom = lwgeom_from_gserialized(input);
542  if (!geom)
543  elog(ERROR, "sfcgal_noop: Unable to deserialize input");
544 
545  result = lwgeom_sfcgal_noop(geom);
546  lwgeom_free(geom);
547  if (!result)
548  elog(ERROR, "sfcgal_noop: Unable to deserialize lwgeom");
549 
550  output = geometry_serialize(result);
551  PG_FREE_IF_COPY(input, 0);
552  PG_RETURN_POINTER(output);
553 }
LWGEOM * lwgeom_sfcgal_noop(const LWGEOM *geom_in)
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
void sfcgal_postgis_init(void)

References geometry_serialize(), lwgeom_free(), lwgeom_from_gserialized(), lwgeom_sfcgal_noop(), and sfcgal_postgis_init().

Here is the call graph for this function: