PostGIS  2.1.10dev-r@@SVN_REVISION@@
sfcgal_geometry_t* POSTGIS2SFCGALGeometry ( GSERIALIZED pglwgeom)

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

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

Referenced by sfcgal_area(), sfcgal_area3D(), 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(), and sfcgal_triangulate().

64 {
65  sfcgal_geometry_t* g;
66  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
68  if (! lwgeom)
69  {
70  lwerror("POSTGIS2SFCGALGeometry: Unable to deserialize input");
71  }
72  g = LWGEOM2SFCGAL(lwgeom);
73  lwgeom_free(lwgeom);
75  return g;
76 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
sfcgal_geometry_t * LWGEOM2SFCGAL(const LWGEOM *geom)

Here is the call graph for this function:

Here is the caller graph for this function: