From: Sandro Santilli Date: Fri, 12 Dec 2003 10:28:50 +0000 (+0000) Subject: added GEOSnoop OUTPUT debugging info X-Git-Tag: pgis_0_8_1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75f20992cb2198796f6e7f85ebb1fcb20e3a5c9c;p=postgis added GEOSnoop OUTPUT debugging info git-svn-id: http://svn.osgeo.org/postgis/trunk@406 b70326c6-7e19-0410-871a-916f4a2858ee --- 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); }