PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ sfcgal_is_solid()

Datum sfcgal_is_solid ( PG_FUNCTION_ARGS  )

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

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

Referenced by postgis_sfcgal_version().

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.
uint8_t flags
Definition: liblwgeom.h:399
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define FLAGS_GET_SOLID(flags)
Definition: liblwgeom.h:144
Here is the call graph for this function:
Here is the caller graph for this function: