[GRASS-dev] Adding an expert mode to the parser
Sören Gebbert
soerengebbert at googlemail.com
Tue Sep 27 14:01:30 PDT 2016
Hi,
2016-09-26 4:16 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
>
> On Sun, Sep 25, 2016 at 5:40 PM, Sören Gebbert <
> soerengebbert at googlemail.com> wrote:
>
>> >r.mapclac --raster-region= --north= --south= --west= --east= --res=
>>> >--ewres= --nsres= --vect-region --raster-align= ...
>>>
>>
> I like this in the sense that if the region setting for the module is
> something which should be managed by these extra options, then they should
> be managed in parser, rather than introduced one by one for individual
> modules.
>
> But how is this different from using GRASS_REGION? Convenience of --raster-region=?
> Better syntax than environmental variable?
>
>From my understanding, the GRASS_REGION environmental variable is supported
by G_get_window() [1]. However, most raster modules
uses Rast_window_rows() and Rast_window_cols() to get the current
computational region rows and cols. Hence, setting GRASS_REGION will not
affect most of the raster modules.
Best regards
Soeren
[1]
https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/get_window.c?rev=69586#L30
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160927/7bf4e004/attachment.html>
More information about the grass-dev
mailing list