PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum GEOSnoop ( PG_FUNCTION_ARGS  )

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

References dumpnode::geom, GEOS2POSTGIS(), gserialized_has_z(), lwgeom_geos_error(), and POSTGIS2GEOS().

2963 {
2964  GSERIALIZED *geom;
2965  GEOSGeometry *geosgeom;
2966  GSERIALIZED *lwgeom_result;
2967 
2968  initGEOS(lwpgnotice, lwgeom_geos_error);
2969 
2970  geom = PG_GETARG_GSERIALIZED_P(0);
2971  geosgeom = (GEOSGeometry *)POSTGIS2GEOS(geom);
2972  if ( ! geosgeom ) PG_RETURN_NULL();
2973 
2974  lwgeom_result = GEOS2POSTGIS(geosgeom, gserialized_has_z(geom));
2975  GEOSGeom_destroy(geosgeom);
2976 
2977  PG_FREE_IF_COPY(geom, 0);
2978 
2979  PG_RETURN_POINTER(lwgeom_result);
2980 }
int gserialized_has_z(const GSERIALIZED *gser)
Check if a GSERIALIZED has a Z ordinate.
Definition: g_serialized.c:45
LWGEOM * geom
void lwgeom_geos_error(const char *fmt,...)
GEOSGeometry * POSTGIS2GEOS(GSERIALIZED *pglwgeom)
GSERIALIZED * GEOS2POSTGIS(GEOSGeom geom, char want3d)

Here is the call graph for this function: