Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Okay, so im a little fed up with different raster-in-database solutions that I tried over the last 2 weeks which don't work currently (Postgis raster) or cant handle my volume of data (Rasterlite), so I'm reading about the VRT format. Bear with me, i'd like your opinions on this, and also if what I propose makes sense at all:

VRT is basically a metadata XML file describing various properties of the actual raster file, like pixel dimensions, geolocation, etc..

Step 1: I converted (not really, just generated vrts) all my geotiff files into vrt.

Now, since I see I can merge the VRT, i assume its possible to create a mosaic of vrt metadata files, one big vrt to hold all metadata. Great, that means, metadata will probably be used for optimizing the rendering since qgis will decide (assumption) which tiles fall into the current canvas extent and which not...

Step 2: create a vrt mosaic

Okay, now the next benefit i see is, i only need to add 1 entry into qgis table of contents and i can set different things upon it, like scale dependant rendering and null data value transparency if needed. One could argue, you can simply load geotiffs into qgis and put them in a group, true, but you dont have any control over a group except for setting the common SRS.

If i wanted to see my orthophoto on a small scale (large zoom-out) and still have speedy rendering i would repeat the steps, only with a resampled set of original raster and end up with a few big VRT datasets.

Does this make any sense? :)

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I love processing with vrt's. you can make lots of interim changes. Evaluate them quickly in QGIS and if you like any of them just translate back to a selfcontained raster format (tif, png etc).

saves lots of time.

U2ros,your uses of vrt's makes perfect sense, to me at least :) mosaicking and then clipping is what I originally started using vrts for: eliminating interim rasters that I would delete later.

check out this link: http://blog.perrygeo.net/2010/02/18/lazy-raster-processing-with-gdal-vrts/

hope it has something for you.

share|improve this answer
    
Can you clarify this for me? Can you have multiple file references in one vrt file? for example, if you have 4 geotif files, from which you make 4 vrt files and then merge them. Based on the link you sent, the merge will ACTUALLY happen and the result will be 1 big geotiff file, what i would expect/want would be 1 VRT file that has contents of the original 4 - sort of like a catalog file? –  U2ros Sep 7 '12 at 15:11
    
hey U2ros, are you using gdal cmdline or QGIS to make vrt's. I believe you might find more options using the command line. you can make 4 tifs merge into one vrt. and if you like it export it again as a single tif (or as a vrt). I think you will really like the options available from the gdal commanline tools check out these two websites: gdal.org/gdal_vrttut.html ; gdal.org/gdal_utilities.html –  s_a Sep 7 '12 at 15:26
    
atm, qgis ui, but im comfortable with cli, will definitely do it there then. –  U2ros Sep 7 '12 at 15:28
    
one last thing :) In the page I sent I assume the author wants a final raster and not a VRT so yes the merge will result in a TIFF or some non-virtual format. –  s_a Sep 7 '12 at 15:29
1  
Second answer from this link gis.stackexchange.com/questions/25499/… explains it on a practical level –  U2ros Sep 7 '12 at 15:48
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.