From 75f20992cb2198796f6e7f85ebb1fcb20e3a5c9c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 12 Dec 2003 10:28:50 +0000 Subject: [PATCH] added GEOSnoop OUTPUT debugging info git-svn-id: http://svn.osgeo.org/postgis/trunk@406 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_geos.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/postgis_geos.c b/postgis_geos.c index b26ee1a02..5113a6b53 100644 --- a/postgis_geos.c +++ b/postgis_geos.c @@ -10,6 +10,9 @@ * ********************************************************************** * $Log$ + * Revision 1.25 2003/12/12 10:28:50 strk + * added GEOSnoop OUTPUT debugging info + * * Revision 1.24 2003/12/12 10:08:24 strk * Added GEOSnoop function and some optional debugging output for * geos<->postgis converter (define DEBUG_CONVERTER at top postgis_geos.c) @@ -1779,7 +1782,7 @@ Datum GEOSnoop(PG_FUNCTION_ARGS) geom = (GEOMETRY *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0)); #ifdef DEBUG_CONVERTER - elog(NOTICE, "GEOSnoop: %s", geometry_to_text(geom)); + elog(NOTICE, "GEOSnoop: IN: %s", geometry_to_text(geom)); #endif geosgeom = POSTGIS2GEOS(geom); @@ -1788,6 +1791,10 @@ Datum GEOSnoop(PG_FUNCTION_ARGS) result = GEOS2POSTGIS(geosgeom, geom->is3d); GEOSdeleteGeometry(geosgeom); +#ifdef DEBUG_CONVERTER + elog(NOTICE, "GEOSnoop: OUT: %s", geometry_to_text(result)); +#endif + PG_RETURN_POINTER(result); } -- 2.50.1