[gdal-dev] Re: VRT creation with Python

2010-03-26 Thread Michael Aye
Frank Warmerdam wrote: > > > There is no public GDAL API for modifying the sourcefilename of a VRT. > Can you not just create the VRT files programmatically by inserting the > filename in a template text file? > I can, but that's still more coding than with my idea of manipulating meta-data, b

Re: [gdal-dev] Re: VRT creation with Python

2010-03-26 Thread Even Rouault
Michael, In case you're not aware of it, you don't have to write the VRT in a on-disk file. You can store it into a Python string instead, like : vrt_desc = """ PROJCS["NAD27 / UTM zone 11N",GEOGCS["NAD27",DATUM["North_American_Datum_1927",SPHEROID["Clarke 1866",6378206.4,294.9786982139006