[GRASS-user] raster pixel value
Nikos Alexandris
nik at nikosalexandris.net
Fri Mar 15 22:35:22 PDT 2019
* Markus Metz <markus.metz.giswork at gmail.com> [2019-03-15 22:16:17 +0100]:
>On Thu, Mar 14, 2019 at 11:31 PM Nikos Alexandris <nik at nikosalexandris.net>
>wrote:
>>
>> Markus Metz:
>>
>> >>With r.stats -x, indexing starts with 1 (first row is 1).
>> >>With gdallocationinfo, indexing starts with 0 (first row is 0).
>>
>> I wonder if `-0` flag would make sense to be GDAL-compliant.
>
>Note that the internal variables row() and col() of r.mapcalc also use
>indices starting with 1. As long as the indexing is properly documented, I
>don't see a problem. The r.stats manuals have been updated in trunk r74267
>and relbr76 r74268. Maybe a PR for the documentation of gdallocationinfo is
>needed?
I did search already the GDAL documentation, and the manual for
`gdallocationinfo`. On and off, the "C-style indexing starts at 0" is
mentioned here and there. A clear entry on this in `gdallocationinfo`'s
manual will be purposive.
Nikos
More information about the grass-user
mailing list