PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_is_solid()

Datum sfcgal_is_solid ( PG_FUNCTION_ARGS  )

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

731 {
732  int result;
733  GSERIALIZED *input = PG_GETARG_GSERIALIZED_P(0);
734  LWGEOM *lwgeom = lwgeom_from_gserialized(input);
735  PG_FREE_IF_COPY(input, 0);
736  if (! lwgeom)
737  {
738  elog(ERROR, "sfcgal_is_solid: Unable to deserialize input");
739  }
740  result = FLAGS_GET_SOLID( lwgeom->flags );
741 
742  lwgeom_free(lwgeom);
743 
744  PG_RETURN_BOOL(result);
745 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define FLAGS_GET_SOLID(flags)
Definition: liblwgeom.h:145
uint8_t flags
Definition: liblwgeom.h:400

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

Here is the call graph for this function: