GDAL 3.11.3, Debian 12, using the following command and mappings
directly from the docs page (or my own) I get the following error:
gdal raster reclassify --input=source.tif --mapping=classify.txt
--output=target.tif
ERROR 1: Interval must start with '(' or ']'
classify.txt:
# remap land co
Doh! I'm an idiot. Thanks!
On 8/31/25 16:13, Andrea Giudiceandrea via gdal-dev wrote:
Il 31/08/2025 21:24, Scott via gdal-dev ha scritto:
gdal raster reclassify --input=source.tif --mapping=classify.txt --
output=target.tif
ERROR 1: Interval must start with '(' or ']'
Hi Scott,
you need to
Il 31/08/2025 21:24, Scott via gdal-dev ha scritto:
gdal raster reclassify --input=source.tif --mapping=classify.txt
--output=target.tif
ERROR 1: Interval must start with '(' or ']'
Hi Scott,
you need to use "--mapping=@classify.txt"
gdal raster reclassify --input=source.tif --mapping=@class