Changes between Version 2 and Version 3 of CatalogueForQIS


Ignore:
Timestamp:
Apr 2, 2012, 2:08:35 AM (12 years ago)
Author:
pcav
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CatalogueForQIS

    v2 v3  
    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]]
     1When you have a set of raster that are a mosaic. If really useful a catalogue to use all as a single raster.
     2Qgis is capable to use the GDAL !VirtualCatalog.[[BR]]
     3To 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]]
    44
    55{{{
     
    1111...
    1212}}}
    13 (save the file as "my_list.txt for example)
     13(save the file as e.g. "my_list.txt")
    1414[[BR]]
    1515
     
    1717To create the catalog use this call.[[BR]]
    1818
     19{{{
    1920gdalbuildvrt.exe -resolution average -allow_projection_difference -addalpha -hidenodata -input_file_list my_list.txt -overwrite my_catalog.vrt [[BR]]
     21}}}
    2022
    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]]
     23After 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]]
     24So it is really a good idea to add the stats to the catalogue before use it on QGIS :)[[BR]]
     25QGIS needs only of min/max, nothing else. So, to speed up this step you could use without any problem an approximated stats computing.[[BR]]
     26To add this approx-stats to the catalogue you can use this simple and smart python code:[[BR]]
    2627
    2728[Thanks to Giuseppe Sucameli & Faunalia for this smart code]
     
    6768
    6869Save it as "computestat.py" and use it with this sintax:[[BR]]
     70
     71{{{
    6972computestats.py -approx my_catalog.vrt
     73}}}
    7074
    7175et voila!
    72 Now QGis start fast and smart using the raster catalogue
     76Now QGIS starts fast and smart using the raster catalogue.
    7377[[BR]]
    7478
    75 Happy catalog-ing
     79Happy cataloguing!
    7680[[BR]]
    7781Andrea Peri