PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ POSTGIS2SFCGALGeometry()

sfcgal_geometry_t* POSTGIS2SFCGALGeometry ( GSERIALIZED pglwgeom)

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

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().

82 {
83  sfcgal_geometry_t* g;
84  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
85 
86  if (! lwgeom)
87  {
88  lwpgerror("POSTGIS2SFCGALGeometry: Unable to deserialize input");
89  }
90  g = LWGEOM2SFCGAL(lwgeom);
91  lwgeom_free(lwgeom);
92 
93  return g;
94 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)
Here is the call graph for this function:
Here is the caller graph for this function: