[GRASS-git] [OSGeo/grass] 0c4f02: raster module memory: set new value globally (#922)
Markus Neteler
noreply at github.com
Tue Aug 25 22:20:08 PDT 2020
Branch: refs/heads/master
Home: https://github.com/OSGeo/grass
Commit: 0c4f02edfcc30db71e23772689a012c68e82e35a
https://github.com/OSGeo/grass/commit/0c4f02edfcc30db71e23772689a012c68e82e35a
Author: Markus Neteler <neteler at gmail.com>
Date: 2020-08-26 (Wed, 26 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