diff --git a/gui/wxpython/rlisetup/functions.py b/gui/wxpython/rlisetup/functions.py index 963454c07d2..d77962a97c1 100644 --- a/gui/wxpython/rlisetup/functions.py +++ b/gui/wxpython/rlisetup/functions.py @@ -97,7 +97,7 @@ def convertFeature(vect, outrast, cat, origrast, layer="1", overwrite=False): input=tmp_vect, type="area", layer=layer, - use="val", + use="value", value=cat, output=outrast, overwrite=overwrite, diff --git a/gui/wxpython/rlisetup/sampling_frame.py b/gui/wxpython/rlisetup/sampling_frame.py index 71c175d58cc..c2228f0f1d0 100644 --- a/gui/wxpython/rlisetup/sampling_frame.py +++ b/gui/wxpython/rlisetup/sampling_frame.py @@ -285,7 +285,9 @@ def writeArea(self, coords, rasterName): "r.to.vect", input=tmpraster, output=tmpvector, type="area", overwrite=True ) - RunCommand("v.to.rast", input=tmpvector, output=rasterName, value=1, use="val") + RunCommand( + "v.to.rast", input=tmpvector, output=rasterName, value=1, use="value" + ) wx.EndBusyCursor() grass.use_temp_region() grass.run_command("g.region", vector=tmpvector) diff --git a/scripts/r.mask/r.mask.py b/scripts/r.mask/r.mask.py index fdacea0838b..e33788dffc1 100755 --- a/scripts/r.mask/r.mask.py +++ b/scripts/r.mask/r.mask.py @@ -203,8 +203,8 @@ def main(): input=to_rast_input, layer=layer, output="MASK", - use="val", - val="1", + use="value", + value="1", type="area", cats=cats, where=where, diff --git a/vector/v.to.rast/main.c b/vector/v.to.rast/main.c index b0bef7ba395..930ba11592a 100644 --- a/vector/v.to.rast/main.c +++ b/vector/v.to.rast/main.c @@ -71,10 +71,10 @@ int main(int argc, char *argv[]) use_opt->type = TYPE_STRING; use_opt->required = YES; use_opt->multiple = NO; - use_opt->options = "attr,cat,val,z,dir"; + use_opt->options = "attr,cat,value,z,dir"; use_opt->description = _("Source of raster values"); desc = NULL; - G_asprintf(&desc, "attr;%s;cat;%s;val;%s;z;%s;dir;%s", + G_asprintf(&desc, "attr;%s;cat;%s;value;%s;z;%s;dir;%s", _("read values from attribute table"), _("use category values"), _("use value specified by value option"), _("use z coordinate (points or contours only)"), @@ -104,7 +104,7 @@ int main(int argc, char *argv[]) val_opt->required = NO; val_opt->multiple = NO; val_opt->answer = "1"; - val_opt->description = _("Raster value (for use=val)"); + val_opt->description = _("Raster value (for use=value)"); memory = G_define_standard_option(G_OPT_MEMORYMB); diff --git a/vector/v.to.rast/v.to.rast.html b/vector/v.to.rast/v.to.rast.html index de2fd2bab23..c5c4e7a54d2 100644 --- a/vector/v.to.rast/v.to.rast.html +++ b/vector/v.to.rast/v.to.rast.html @@ -31,7 +31,7 @@
Boundaries (usually without categories) can be rasterized with
-v.to.rast type=boundary layer=-1 use=val +v.to.rast type=boundary layer=-1 use=value