-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
r.external speed-up #1305
r.external speed-up #1305
Conversation
* faster linking with r.external * super-fast mode for r.external * update r.info if range is missing * fix r.support to re-compute range for fp maps
* warning for fast mode
A case for the super-fast mode is raster reprojection with |
Co-authored-by: Markus Neteler <neteler@gmail.com>
Co-authored-by: Markus Neteler <neteler@gmail.com>
* add -s flag to the warning to use r.suport
I traced the snippet back to GRASS GIS addons, r.in.proj (commit from Jan 27, 2015): Already back then it was based on (For those here not knowing the story: the |
|
Due to the containing bugfix I suggest to backport this after a while |
* faster linking with r.external * super-fast mode for r.external * warning for fast mode * update r.info if range is missing * fix r.support to re-compute range for fp maps Co-authored-by: Markus Neteler <neteler@gmail.com>
* faster linking with r.external * super-fast mode for r.external * warning for fast mode * update r.info if range is missing * fix r.support to re-compute range for fp maps Co-authored-by: Markus Neteler <neteler@gmail.com>
* faster linking with r.external * super-fast mode for r.external * warning for fast mode * update r.info if range is missing * fix r.support to re-compute range for fp maps Co-authored-by: Markus Neteler <neteler@gmail.com>
* faster linking with r.external * super-fast mode for r.external * warning for fast mode * update r.info if range is missing * fix r.support to re-compute range for fp maps Co-authored-by: Markus Neteler <neteler@gmail.com>
Use
GDALComputeRasterMinMax()
for faster range computation.Add super-fast mode without range computation, and a warning for this mode.
r.info
will not report the range if not existing. If the range is explicitly requested with -r or -s, the range and stats are computed on-the-fly if not existing.r.support -s
is now computing the correct range for FCELL /DCELL maps.Tested with a tiled GeoTIFF with 7 billion cells, linking with
r.external
drops from 2:06 minutes to 46 seconds. In super-fast mode, linking takes only 0.05 seconds.Regarding the super-fast mode without data range computation, a number of modules will not work correctly. If the range is needed, it can be computed for the linked map with
r.support
, but linking again withr.external
would be faster, at least for large, tiled maps.