From a39bc622f8e809dce0d71521c31da42c22e65a5e Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Mon, 27 Jun 2011 16:47:17 +0000 Subject: [PATCH] Edit rt_band_get_pixel() so that the warning message contains the out-of-bound coordinates being accessed. git-svn-id: http://svn.osgeo.org/postgis/trunk@7496 b70326c6-7e19-0410-871a-916f4a2858ee --- raster/rt_core/rt_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raster/rt_core/rt_api.c b/raster/rt_core/rt_api.c index a4c37b371..bbd540fef 100644 --- a/raster/rt_core/rt_api.c +++ b/raster/rt_core/rt_api.c @@ -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; } -- 2.50.1