[GRASS-dev] [GRASS GIS] #3839: r.watershed usage inconsistency
GRASS GIS
trac at osgeo.org
Thu May 2 03:33:16 PDT 2019
#3839: r.watershed usage inconsistency
-------------------------+-------------------------
Reporter: martinl | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.6.2
Component: Raster | Version: svn-trunk
Keywords: r.watershed | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
r.watershed source code says
{{{
/* Check for some output map */
if ((opt8->answer == NULL)
&& (opt9->answer == NULL)
&& (opt10->answer == NULL)
&& (opt11->answer == NULL)
&& (opt12->answer == NULL)
&& (opt14->answer == NULL)
&& (opt15->answer == NULL)) {
G_fatal_error(_("Sorry, you must choose an output map."));
}
}}}
but there are more output raster maps defined, eg.
{{{
opt13 = G_define_standard_option(G_OPT_R_OUTPUT);
opt13->key = "length_slope";
opt13->label = _("Name for output slope length raster map");
opt13->description = _("Slope length and steepness (LS) factor for
USLE");
opt13->required = NO;
opt13->guisection = _("Outputs");
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3839>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list