]> granicus.if.org Git - postgis/commitdiff
Addition debug output for rt_raster_from_gdal_dataset()
authorBborie Park <bkpark at ucdavis.edu>
Tue, 26 Feb 2013 17:42:03 +0000 (17:42 +0000)
committerBborie Park <bkpark at ucdavis.edu>
Tue, 26 Feb 2013 17:42:03 +0000 (17:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11116 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index 66fc4bf58c4d5d61063b711ca5cbc8f1c3af295d..6ad24bbe36f5726b3be29fdc8191ecf5804440db 100644 (file)
@@ -9194,9 +9194,11 @@ rt_raster_from_gdal_dataset(GDALDatasetH ds) {
                        rt_raster_destroy(rast);
                        return NULL;
                }
+               RASTER_DEBUGF(4, "gdband @ %p", gdband);
 
                /* pixtype */
                gdpixtype = GDALGetRasterDataType(gdband);
+               RASTER_DEBUGF(4, "gdpixtype, size = %s, %d", GDALGetDataTypeName(gdpixtype), GDALGetDataTypeSize(gdpixtype) / 8);
                pt = rt_util_gdal_datatype_to_pixtype(gdpixtype);
                if (pt == PT_END) {
                        rterror("rt_raster_from_gdal_dataset: Unknown pixel type for GDAL band");
@@ -9276,7 +9278,7 @@ rt_raster_from_gdal_dataset(GDALDatasetH ds) {
                        rt_raster_destroy(rast);
                        return NULL;
                }
-               RASTER_DEBUGF(3, "values len = %d", valueslen);
+               RASTER_DEBUGF(3, "values @ %p of length = %d", values, valueslen);
 
                for (iYBlock = 0; iYBlock < nYBlocks; iYBlock++) {
                        for (iXBlock = 0; iXBlock < nXBlocks; iXBlock++) {