PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ POSTGIS2GEOS()

GEOSGeometry* POSTGIS2GEOS ( const GSERIALIZED pglwgeom)

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

2748 {
2749  GEOSGeometry *ret;
2750  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
2751  if ( ! lwgeom )
2752  {
2753  lwpgerror("POSTGIS2GEOS: unable to deserialize input");
2754  return NULL;
2755  }
2756  ret = LWGEOM2GEOS(lwgeom, 0);
2757  lwgeom_free(lwgeom);
2758 
2759  return ret;
2760 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1155

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

Referenced by ARRAY2GEOS(), buffer(), contains(), containsproperly(), convexhull(), coveredby(), covers(), crosses(), disjoint(), GEOSnoop(), hausdorffdistance(), hausdorffdistancedensify(), isring(), isvaliddetail(), isvalidreason(), overlaps(), pgis_union_geometry_array(), relate_full(), relate_pattern(), ST_Equals(), ST_FrechetDistance(), ST_Intersects(), ST_MaximumInscribedCircle(), ST_MinimumClearance(), ST_MinimumClearanceLine(), ST_OrientedEnvelope(), and touches().

Here is the call graph for this function:
Here is the caller graph for this function: