[gdal-dev] gdalbuildvrt save relative paths

Jürgen E. Fischer jef at norbit.de
Wed Oct 14 12:59:10 EDT 2009


Hi Greg,

On Wed, 14. Oct 2009 at 12:40:19 -0400, Greg Coats wrote:
>    How does one specify that gdalbuildvrt save relative paths, rather than
>    absolute paths?

Looks like that isn't supported directly yet.  But I'd try:

cd /PATH/TO/THE/VRT/
gdalbuildvrt foo.vrt ../RELATIVE/PATH/TO/THE/DATASOURCES/*.tif
perl -i.bak -pe 's/relativeToVRT="0"/relativeToVRT="1"/' foo.vrt


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the gdal-dev mailing list