Re: [gdal-dev] creating .VRT files with the python bindings

2011-02-01 Thread Even Rouault
Le mardi 01 février 2011 22:57:10, Ricardo Filipe Soares Garcia da a écrit : > Hi Even, list > > Since I don't have a chance to test gdal 1.8.0 at my machine, I > decided to apply an (ugly) hack to alter the VRT file after it is > created, changing all the 'relativeToVRT' values to '0'. It is work

Re: [gdal-dev] creating .VRT files with the python bindings

2011-02-01 Thread Ricardo Filipe Soares Garcia da
Hi Even, list Since I don't have a chance to test gdal 1.8.0 at my machine, I decided to apply an (ugly) hack to alter the VRT file after it is created, changing all the 'relativeToVRT' values to '0'. It is working fine. About my other question: - Is it possible to use derived bands via python b

Re: [gdal-dev] creating .VRT files with the python bindings

2011-02-01 Thread Even Rouault
Ricardo, Basically the XML you pass with SetMetadataItem() is deserialized and serialized again, but the relativeToVRT element isn't part of the internal model of the VRT driver and is "recomputed" at serialization time, so this explains why it can change behind your back. I think however that

[gdal-dev] creating .VRT files with the python bindings

2011-01-31 Thread Ricardo Filipe Soares Garcia da
Hello list I am trying to create a .VRT file to mosaic a bunch of HDF5 files. It is starting to work, except for the fact that I can't seem to set the relativeToVRT attribute of the SourceFilename tag to "0". I've been adapting the online vrt tutorial[1] from C++ to Python. The tutorial says that