PostGIS  2.1.10dev-r@@SVN_REVISION@@
GEOSGeometry* POSTGIS2GEOS ( GSERIALIZED g)

Definition at line 3197 of file postgis/lwgeom_geos.c.

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

Referenced by buffer(), centroid(), contains(), containsproperly(), convexhull(), coveredby(), covers(), crosses(), disjoint(), geos_intersects(), GEOSnoop(), hausdorffdistance(), hausdorffdistancedensify(), isring(), issimple(), isvaliddetail(), isvalidreason(), linemerge(), overlaps(), pgis_union_geometry_array(), pointonsurface(), polygonize_garray(), relate_full(), relate_pattern(), ST_Equals(), ST_UnaryUnion(), topologypreservesimplify(), and touches().

3198 {
3199  GEOSGeometry *ret;
3200  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
3201  if ( ! lwgeom )
3202  {
3203  lwerror("POSTGIS2GEOS: unable to deserialize input");
3204  return NULL;
3205  }
3206  ret = LWGEOM2GEOS(lwgeom);
3207  lwgeom_free(lwgeom);
3208  if ( ! ret )
3209  {
3210  /* lwerror("POSTGIS2GEOS conversion failed"); */
3211  return NULL;
3212  }
3213  return ret;
3214 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67

Here is the call graph for this function:

Here is the caller graph for this function: