#1836: r.reclass.eq reports r.reclass rules file missing
---------------------+------------------------------------------------------
Reporter: cwren | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: | Platform: MSWindows 7
Cpu: x86-64 |
---------------------+------------------------------------------------------
r.reclass.eq gives an error referring to a missing rules file and fails to
produce an output. Using osgeo4w's grass70dev 7.0.svn-r54261-436
r.rescale.eq --overwrite input=test@PERMANENT output=testout to=1,100
Reading test@PERMANENT ...
Description:
Reclassify raster map based on category values.
Creates a new raster map whose category values are based
upon a reclassification of the categories in an existing
raster map.
Keywords:
raster, reclassification
Usage:
r.reclass input=name output=name rules=name [title=string]
[--overwrite] [--verbose] [--quiet]
Flags:
--o Allow output files to overwrite existing files
--v Verbose module output
--q Quiet module output
Parameters:
input Name of raster map to be reclassified
output Name for output raster map
rules File containing reclass rules
"-" to read from stdin
title Title for the resulting raster map
ERROR: Required parameter <rules> not set:
(File containing reclass rules)
Rescale test@PERMANENT[-5644,5207] to testout[1,100]
Replying to [comment:2 glynn]:
> It hasn't been updated since r.reclass' rules= option became mandatory.
r.rescale was fixed with r45358; r.rescale.eq needs the same treatment.
Done in r54322. The tomorrow's binary snapshot will contain the fix.
> BTW, there's no need to sprintf() the string into a buffer; using a
string literal will work.