PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ POSTGIS2SFCGALGeometry()

sfcgal_geometry_t* POSTGIS2SFCGALGeometry ( GSERIALIZED pglwgeom)

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

83 {
84  sfcgal_geometry_t* g;
85  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
86 
87  if (! lwgeom)
88  {
89  lwpgerror("POSTGIS2SFCGALGeometry: Unable to deserialize input");
90  }
91  g = LWGEOM2SFCGAL(lwgeom);
92  lwgeom_free(lwgeom);
93 
94  return g;
95 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144

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

Referenced by sfcgal_approximate_medial_axis(), sfcgal_area(), sfcgal_area3D(), sfcgal_difference(), sfcgal_difference3D(), sfcgal_distance(), sfcgal_distance3D(), sfcgal_extrude(), sfcgal_force_lhr(), sfcgal_intersection(), sfcgal_intersection3D(), sfcgal_intersects(), sfcgal_intersects3D(), sfcgal_is_planar(), sfcgal_minkowski_sum(), sfcgal_orientation(), sfcgal_straight_skeleton(), sfcgal_tesselate(), sfcgal_triangulate(), sfcgal_union(), sfcgal_union3D(), and sfcgal_volume().

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