]> granicus.if.org Git - postgis/commitdiff
Fix debug output
authorDaniel Baston <dbaston@gmail.com>
Wed, 4 May 2016 00:20:57 +0000 (00:20 +0000)
committerDaniel Baston <dbaston@gmail.com>
Wed, 4 May 2016 00:20:57 +0000 (00:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14880 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c

index 690dc7a7e5307ebba32a576750214e3e3176c471..a87fda92326bfb479880d01f7c147dc9b85c5d52 100644 (file)
@@ -1811,7 +1811,7 @@ Datum contains(PG_FUNCTION_ARGS)
        }
        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 @@ Datum covers(PG_FUNCTION_ARGS)
        }
        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 @@ Datum coveredby(PG_FUNCTION_ARGS)
        }
        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);