-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
g.gisenv: set raster compression method #287
Conversation
allow setting the raster compression method with g.gisenv
update documentation to set GRASS_COMPRESSOR also with g.gisenv
I have two comments about this PR.
My two cents... |
@HuidaeCho The motivation for this PR comes from this thread: I like the possibility to set configuration variables in different ways as e.g. with GDAL's config options. Of course g.gisenv is explicitly for GRASS variables, but in this case I would find it confusing to have e.g. |
We already have this inconsistency: Also, I found inconsistent handling of environment and g.gisenv variables for these two overlapping variables. How does GDAL handle this situation? |
I find this confusing: different variables having the same effect.
Apparently there are no rules in GRASS to determine the priorities of environment and Currently, handling of these variables is done individually and probably historically grown, that's why
AFAIKT, GDAL does not use different variable names for the same configuration options. GDAL first checks configuration options set by --config/ |
IMO, the priorities of these variables should be consistent and I propose:
Naming convention
Maybe, just migrate all environment variables to g.gisenv and get rid of them for version 8 (and don't worry about the prefix)? At least to me, it's still unclear when we want to add new environment variables as compared to g.gisenv ones. Global settings for all LOCATIONs and MAPSETs vs. g.gisenv local to MAPSETs? Then, why don't we have the same version of every environment variable in g.gisenv? |
Here is a conflict, can anyone please resolve it? |
Resolved |
@metzm and @HuidaeCho: may I now merge this PR? |
I thought we were going to address inconsistency in naming in this PR (See #287 (comment)). Maybe, that's in another PR? |
Sorry for the late response! IMHO, the issue of variable naming should go into another PR. Some GRASS environmental variables other than those controlling raster compression methods might be transferred to GISRC variables, or mapset-specific variables. This would make life easier for users not comfortable with env vars. Ideally, a more general mechanism, maybe as in GDAL, could be introduced, where variables can be set with different methods? Obviously, the name of the variable must be the same, no matter what method is used. |
allow setting the raster compression method with g.gisenv set="GRASS_COMPRESSOR=XXX"
TODO: update manuals