PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ POSTGIS2GEOS()

GEOSGeometry* POSTGIS2GEOS ( GSERIALIZED pglwgeom)

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

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

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

3195 {
3196  GEOSGeometry *ret;
3197  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
3198  if ( ! lwgeom )
3199  {
3200  lwpgerror("POSTGIS2GEOS: unable to deserialize input");
3201  return NULL;
3202  }
3203  ret = LWGEOM2GEOS(lwgeom, 0);
3204  lwgeom_free(lwgeom);
3205  if ( ! ret )
3206  {
3207  /* lwpgerror("POSTGIS2GEOS conversion failed"); */
3208  return NULL;
3209  }
3210  return ret;
3211 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, int autofix)
Here is the call graph for this function:
Here is the caller graph for this function: