PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ sfcgal_make_solid()

Datum sfcgal_make_solid ( PG_FUNCTION_ARGS  )

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

517 {
518  GSERIALIZED *output;
519  GSERIALIZED *input = PG_GETARG_GSERIALIZED_P(0);
520  LWGEOM *lwgeom = lwgeom_from_gserialized(input);
521  if (!lwgeom)
522  elog(ERROR, "sfcgal_make_solid: Unable to deserialize input");
523 
524  FLAGS_SET_SOLID(lwgeom->flags, 1);
525 
526  output = geometry_serialize(lwgeom);
527  lwgeom_free(lwgeom);
528  PG_FREE_IF_COPY(input, 0);
529  PG_RETURN_POINTER(output);
530 }
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
#define FLAGS_SET_SOLID(flags, value)
Definition: liblwgeom.h:191
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
lwflags_t flags
Definition: liblwgeom.h:447

References LWGEOM::flags, FLAGS_SET_SOLID, geometry_serialize(), lwgeom_free(), and lwgeom_from_gserialized().

Here is the call graph for this function: