PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ POSTGIS2SFCGALGeometry()

sfcgal_geometry_t* POSTGIS2SFCGALGeometry ( GSERIALIZED pglwgeom)

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

76 {
77  sfcgal_geometry_t *g;
78  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
79 
80  if (!lwgeom)
81  lwpgerror("POSTGIS2SFCGALGeometry: Unable to deserialize input");
82 
83  g = LWGEOM2SFCGAL(lwgeom);
84  lwgeom_free(lwgeom);
85 
86  return g;
87 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138

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

Referenced by sfcgal_approximate_medial_axis(), sfcgal_area3D(), sfcgal_difference3D(), sfcgal_extrude(), sfcgal_force_lhr(), sfcgal_intersection3D(), sfcgal_is_planar(), sfcgal_minkowski_sum(), sfcgal_orientation(), sfcgal_straight_skeleton(), sfcgal_tesselate(), sfcgal_union3D(), sfcgal_volume(), and ST_ConstrainedDelaunayTriangles().

Here is the call graph for this function:
Here is the caller graph for this function: