[GRASS-dev] Re: [GRASS GIS] #669: let users save/load mapcalc
expressions
GRASS GIS
trac at osgeo.org
Mon Aug 3 09:34:59 EDT 2009
#669: let users save/load mapcalc expressions
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: grass-dev at lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map calculator
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by 1gray):
Replying to [ticket:669 timmie]:
> The mapcalc expressions are sometimes long.
> Please enable a save/laod option.
> The mapcalc expression files may have placefolders for raster files or
reference particular rasters.
This is already possible when using the command-line interface. Consider,
e. g.:
{{{
bash$ (r=baz ; a=foo ; b=bar ; r.mapcalc "\"$r\" = \"$a\" + \"$b\"")
}}}
Note that you can rely on all the Bash facilities here, like, e. g.,
looping constructs:
{{{
bash$ (for i in $(seq 1 10) ; do
r.mapcalc "\"result${i}\" = \"baz\" * \"foo${i}\" +
\"bar${i}\""
done)
}}}
After the snippet of code is tested, it may easily be shared with the
colleagues using either:
* shared local filesystem;
* shared NFS or SMB/CIFS volume;
* shared VCS or your own public DVCS repository;
* a mailing list, a newsgroup or a Wiki page;
* a WWW page;
* or a sheer variety of other means.
IOW, all the requested functionality is, in fact, present in GRASS (except
for the sharing part, but why should it be?) Therefore, I'm suggesting
'''wontfix''' for this one.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/669#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list