]> granicus.if.org Git - postgis/commitdiff
added GEOSnoop OUTPUT debugging info
authorSandro Santilli <strk@keybit.net>
Fri, 12 Dec 2003 10:28:50 +0000 (10:28 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 12 Dec 2003 10:28:50 +0000 (10:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@406 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_geos.c

index b26ee1a021ef41f7eec48a96086dcdf163f956cf..5113a6b539ac9794d24b42a2bd2ae2cd5090973e 100644 (file)
@@ -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);
 }