PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ POSTGIS2GEOS()

GEOSGeometry* POSTGIS2GEOS ( const GSERIALIZED pglwgeom)

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

1823 {
1824  GEOSGeometry *ret;
1825  LWGEOM *lwgeom = lwgeom_from_gserialized(pglwgeom);
1826  if ( ! lwgeom )
1827  {
1828  lwpgerror("POSTGIS2GEOS: unable to deserialize input");
1829  return NULL;
1830  }
1831  ret = LWGEOM2GEOS(lwgeom, 0);
1832  lwgeom_free(lwgeom);
1833 
1834  return ret;
1835 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:268
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1218

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

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

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