PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ POSTGIS2GEOS()

GEOSGeometry* POSTGIS2GEOS ( GSERIALIZED g)

Definition at line 2846 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(), ST_FrechetDistance(), ST_MinimumClearance(), ST_MinimumClearanceLine(), ST_OrientedEnvelope(), topologypreservesimplify(), and touches().

2847 {
2848  GEOSGeometry *ret;
2849  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
2850  if ( ! lwgeom )
2851  {
2852  lwpgerror("POSTGIS2GEOS: unable to deserialize input");
2853  return NULL;
2854  }
2855  ret = LWGEOM2GEOS(lwgeom, 0);
2856  lwgeom_free(lwgeom);
2857  if ( ! ret )
2858  {
2859  /* lwpgerror("POSTGIS2GEOS conversion failed"); */
2860  return NULL;
2861  }
2862  return ret;
2863 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
Here is the call graph for this function:
Here is the caller graph for this function: