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

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

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

730 {
731  int result;
732  GSERIALIZED *input = PG_GETARG_GSERIALIZED_P(0);
733  LWGEOM *lwgeom = lwgeom_from_gserialized(input);
734  PG_FREE_IF_COPY(input, 0);
735  if (! lwgeom)
736  {
737  lwerror("sfcgal_is_solid: Unable to deserialize input");
738  }
739  result = FLAGS_GET_SOLID( lwgeom->flags );
740 
741  lwgeom_free(lwgeom);
742 
743  PG_RETURN_BOOL(result);
744 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint8_t flags
Definition: liblwgeom.h:396
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1063
#define FLAGS_GET_SOLID(flags)
Definition: liblwgeom.h:144
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:102

Here is the call graph for this function: