[Gdal-dev] Re: vrt loading as strings

Frank Warmerdam warmerdam at pobox.com
Thu Dec 5 17:20:06 EST 2002


gwalter at atlsci.com wrote:
> Hi Frank,
> 
> I've just tried loading a vrt by passing gdal.Open() a string with the vrt
> contents, but it didn't work.  I get the error below.  Do I need to do something
> special in formatting the string?  I just read in all the lines and concatenated
> them by adding them to each other.

Gillian,

Sorry ... I was wrong about that.  In fact it was the Create() method that I
modified so you could pass an XML description directly as the name.  That could
be useful to create a virtual dataset representing a view on to something
without the XML having to actually be written to disk.  I have now also
modified the Open() method to allowing passing in raw XML.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list