PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ sfcgal_is_solid()

Datum sfcgal_is_solid ( PG_FUNCTION_ARGS  )

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

500 {
501  int result;
502  GSERIALIZED *input = PG_GETARG_GSERIALIZED_P(0);
503  LWGEOM *lwgeom = lwgeom_from_gserialized(input);
504  PG_FREE_IF_COPY(input, 0);
505  if (!lwgeom)
506  elog(ERROR, "sfcgal_is_solid: Unable to deserialize input");
507 
508  result = lwgeom_is_solid(lwgeom);
509 
510  lwgeom_free(lwgeom);
511 
512  PG_RETURN_BOOL(result);
513 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
int lwgeom_is_solid(const LWGEOM *geom)
Return LW_TRUE if geometry has SOLID flag.
Definition: lwgeom.c:930

References lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_is_solid().

Here is the call graph for this function: