PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum sfcgal_is_solid ( PG_FUNCTION_ARGS  )

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

References LWGEOM::flags, FLAGS_GET_SOLID, lwerror(), lwgeom_free(), and lwgeom_from_gserialized().

719 {
720  int result;
721  GSERIALIZED *input = PG_GETARG_GSERIALIZED_P(0);
722  LWGEOM *lwgeom = lwgeom_from_gserialized(input);
723  PG_FREE_IF_COPY(input, 0);
724  if (! lwgeom)
725  {
726  lwerror("sfcgal_is_solid: Unable to deserialize input");
727  }
728  result = FLAGS_GET_SOLID( lwgeom->flags );
729 
730  lwgeom_free(lwgeom);
731 
732  PG_RETURN_BOOL(result);
733 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint8_t flags
Definition: liblwgeom.h:381
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
#define FLAGS_GET_SOLID(flags)
Definition: liblwgeom.h:129
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74

Here is the call graph for this function: