1 | | When you have a set of raster that are a mosaic. If really useful a catalogue to use all ads un unique raster. |
2 | | Qgis is capable to use the VirtualCatalog of gdal.[[BR]] |
3 | | To create a catalogue (on windows) usable from qgis 1.9, you can create a file ascii with a list of all the raster with their paths. Like this:[[BR]] |
| 1 | When you have a set of raster that are a mosaic. If really useful a catalogue to use all as a single raster. |
| 2 | Qgis is capable to use the GDAL !VirtualCatalog.[[BR]] |
| 3 | To create a catalogue (on windows) usable from qgis 1.9, you can create an ASCII file with a list of all the raster with their paths, e.g.:[[BR]] |
21 | | After the catalog is create it could be used from qgs. But the gdalbuildvrt don't compute the statistics of the rasters in the catalogue and unfortunately qgis, |
22 | | if detect that the stats are not available in the catalog, try to compute they for each raster (ouch!). If the rasters are huge and on a shared remote folder. This step could be more time expensive.[[BR]] |
23 | | So is really a good idea to add the stats to the catalogue before use it on qgis :)[[BR]] |
24 | | Qgis really need only of min/max nothing else. Also to speed up this step you could use without any problem an approximated stats computing.[[BR]] |
25 | | To add this approx-stats to the gdal you can use this simple and smart python code:[[BR]] |
| 23 | After the catalog is created, it can be used from qgs. But the gdalbuildvrt doesn't compute the statistics of the rasters in the catalogue; unfortunately qgis, if detect that the stats are not available in the catalogue, tries to compute it for each raster (ouch!). If the rasters are huge and on a shared remote folder, this step can take very long.[[BR]] |
| 24 | So it is really a good idea to add the stats to the catalogue before use it on QGIS :)[[BR]] |
| 25 | QGIS needs only of min/max, nothing else. So, to speed up this step you could use without any problem an approximated stats computing.[[BR]] |
| 26 | To add this approx-stats to the catalogue you can use this simple and smart python code:[[BR]] |