From: Mark Cave-Ayland Date: Mon, 27 Jun 2011 16:47:17 +0000 (+0000) Subject: Edit rt_band_get_pixel() so that the warning message contains the out-of-bound coordi... X-Git-Tag: 2.0.0alpha1~1340 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a39bc622f8e809dce0d71521c31da42c22e65a5e;p=postgis 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 --- 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; }