PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ sfcgal_is_solid()

Datum sfcgal_is_solid ( PG_FUNCTION_ARGS  )

Definition at line 729 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().

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  elog(ERROR, "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:397
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
#define FLAGS_GET_SOLID(flags)
Definition: liblwgeom.h:145
Here is the call graph for this function:
Here is the caller graph for this function: