[GRASS-git] [OSGeo/grass] db45a2: raster module memory: set new value globally (#922)
Markus Neteler
noreply at github.com
Mon Aug 31 12:48:28 PDT 2020
Branch: refs/heads/releasebranch_7_8
Home: https://github.com/OSGeo/grass
Commit: db45a242d8d49fe1b7dc73063837f4206054176e
https://github.com/OSGeo/grass/commit/db45a242d8d49fe1b7dc73063837f4206054176e
Author: Markus Neteler <neteler at gmail.com>
Date: 2020-08-31 (Mon, 31 Aug 2020)
Changed paths:
M general/g.parser/standard_option.c
M imagery/i.ortho.photo/i.ortho.rectify/main.c
M imagery/i.rectify/main.c
M imagery/i.segment/parse_args.c
M include/gis.h
M lib/gis/parser_standard_options.c
M lib/init/variables.html
M man/parser_standard_options.py
M raster/r.cost/main.c
M raster/r.in.gdal/main.c
M raster/r.proj/main.c
M raster/r.resamp.bspline/main.c
M raster/r.stream.extract/main.c
M raster/r.terraflow/main.cpp
M raster/r.walk/main.c
M raster/r.watershed/front/main.c
M scripts/r.fillnulls/r.fillnulls.py
M scripts/r.import/r.import.py
M temporal/t.rast.import/t.rast.import.py
M vector/v.surf.bspline/main.c
M vector/v.to.rast/main.c
Log Message:
-----------
raster module memory: set new value globally (#922)
* raster module memory: set other value globally
This change allows to globally override the default 300 MB with a user defined value:
r.in.gdal --help
Imports raster data into a GRASS raster map using GDAL library.
Usage:
r.in.gdal [-ojeflakcrp] input=name output=name
...
Parameters:
input Name of raster file to be imported
output Name for output raster map
band Band(s) to select (default is all bands)
memory Maximum memory to be used (in MB)
default: 300
target Name of GCPs target location
title Title for resultant raster map
offset Offset to be added to band numbers
default: 0
g.gisenv set="MEMORYMB=6000"
r.in.gdal --help
Imports raster data into a GRASS raster map using GDAL library.
Usage:
r.in.gdal [-ojeflakcrp] input=name output=name
...
Parameters:
input Name of raster file to be imported
output Name for output raster map
band Band(s) to select (default is all bands)
memory Maximum memory to be used (in MB)
default: 6000
target Name of GCPs target location
title Title for resultant raster map
offset Offset to be added to band numbers
default: 0
g.gisenv set="MEMORYMB=300"
Based upon demo patch my @metzm
* fix double description
* code simplification by defining new G_define_standard_option(G_OPT_MEMORYMB)
* update STD_OPT_STRINGS after include/gis.h modification
* Patch added to also set default answer at compile time
* document new GRASS variable MEMORYMB
- fixes the creation of man pages
https://github.com/OSGeo/grass/pull/922#issuecomment-678823688
Contributed by @metzm
More information about the grass-commit
mailing list