]> granicus.if.org Git - postgis/commitdiff
Fixed debug problem in #1308
authorDavid Zwarg <dzwarg@azavea.com>
Fri, 18 Nov 2011 14:53:36 +0000 (14:53 +0000)
committerDavid Zwarg <dzwarg@azavea.com>
Fri, 18 Nov 2011 14:53:36 +0000 (14:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8179 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c
raster/rt_pg/rt_pg.c

index 64cfd1cae149984dda9b1f548b4bf43b1f6a79ef..b6503def073ce3461681a5453c472aa4a6d27629 100644 (file)
@@ -4458,7 +4458,7 @@ rt_raster_dump_as_wktpolygons(rt_raster raster, int nband, int * pnElements)
         hFeature = OGR_L_GetNextFeature(hLayer);
         dValue = OGR_F_GetFieldAsDouble(hFeature, iPixVal);
 
-       hGeom = OGR_F_GetGeometryRef(hFeature);
+        hGeom = OGR_F_GetGeometryRef(hFeature);
        OGR_G_ExportToWkt(hGeom, &pszSrcText);
 
        pols[j].val = dValue;
index bd162c58cbe7540b57025b533fc8be8cfc6e7ade..ded778e1fc439896c24b3bad5c1db5ae7205e6d4 100644 (file)
@@ -847,8 +847,8 @@ Datum RASTER_dumpAsWKTPolygons(PG_FUNCTION_ARGS)
         values[2] = Int32GetDatum(geomval2[call_cntr].srid);
 
         POSTGIS_RT_DEBUGF(4, "Result %d, Polygon %s", call_cntr, geomval2[call_cntr].geom);
-        POSTGIS_RT_DEBUGF(4, "Result %d, val %s", call_cntr, geomval2[call_cntr].val);
-        POSTGIS_RT_DEBUGF(4, "Result %d, val %s", call_cntr, geomval2[call_cntr].srid);
+        POSTGIS_RT_DEBUGF(4, "Result %d, val %f", call_cntr, geomval2[call_cntr].val);
+        POSTGIS_RT_DEBUGF(4, "Result %d, srid %d", call_cntr, geomval2[call_cntr].srid);
 
         /**
          * Free resources.
@@ -856,7 +856,7 @@ Datum RASTER_dumpAsWKTPolygons(PG_FUNCTION_ARGS)
         pfree(geomval2[call_cntr].geom);
 
         /* build a tuple */
-                               tuple = heap_form_tuple(tupdesc, values, nulls);
+        tuple = heap_form_tuple(tupdesc, values, nulls);
 
         /* make the tuple into a datum */
         result = HeapTupleGetDatum(tuple);