[postgis-tickets] r14880 - Fix debug output

Daniel Baston dbaston at gmail.com
Tue May 3 17:20:57 PDT 2016


Author: dbaston
Date: 2016-05-03 17:20:57 -0700 (Tue, 03 May 2016)
New Revision: 14880

Modified:
   trunk/postgis/lwgeom_geos.c
Log:
Fix debug output

Modified: trunk/postgis/lwgeom_geos.c
===================================================================
--- trunk/postgis/lwgeom_geos.c	2016-05-02 19:15:31 UTC (rev 14879)
+++ trunk/postgis/lwgeom_geos.c	2016-05-04 00:20:57 UTC (rev 14880)
@@ -1811,7 +1811,7 @@
 	}
 	else
 	{
-		POSTGIS_DEBUGF(3, "Contains: type1: %d, type2: %d", type1, type2);
+		POSTGIS_DEBUGF(3, "Contains: type1: %d, type2: %d", gserialized_get_type(geom1), gserialized_get_type(geom2));
 	}
 
 	initGEOS(lwpgnotice, lwgeom_geos_error);
@@ -2030,7 +2030,7 @@
 	}
 	else
 	{
-		POSTGIS_DEBUGF(3, "Covers: type1: %d, type2: %d", type1, type2);
+		POSTGIS_DEBUGF(3, "Covers: type1: %d, type2: %d", gserialized_get_type(geom1), gserialized_get_type(geom2));
 	}
 
 	initGEOS(lwpgnotice, lwgeom_geos_error);
@@ -2181,7 +2181,7 @@
 	}
 	else
 	{
-		POSTGIS_DEBUGF(3, "CoveredBy: type1: %d, type2: %d", type1, type2);
+		POSTGIS_DEBUGF(3, "CoveredBy: type1: %d, type2: %d", gserialized_get_type(geom1), gserialized_get_type(geom2));
 	}
 
 	initGEOS(lwpgnotice, lwgeom_geos_error);



More information about the postgis-tickets mailing list