]> granicus.if.org Git - postgis/commitdiff
Edit rt_band_get_pixel() so that the warning message contains the out-of-bound coordi...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 27 Jun 2011 16:47:17 +0000 (16:47 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 27 Jun 2011 16:47:17 +0000 (16:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7496 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index a4c37b371a523affed599e64724f174e94722280..bbd540fefe2c17d8a81ae53558c07772c476a1d9 100644 (file)
@@ -1321,7 +1321,7 @@ rt_band_get_pixel(rt_band band, uint16_t x, uint16_t y, double *result) {
     pixtype = band->pixtype;
 
     if (x >= band->width || y >= band->height) {
-        rtwarn("Attempting to get pixel value with out of range raster coordinates");
+        rtwarn("Attempting to get pixel value with out of range raster coordinates: (%u, %u)", x, y);
         return -1;
     }