[gdal-dev] in memory KML
Frank Warmerdam
warmerdam at pobox.com
Tue Mar 31 13:32:31 EDT 2009
Clay, Bruce wrote:
> After a bit more digging I am not sure I asked the right question.
>
>
>
> What I want to do is read feature information from a shapefile or other
> data source and get a string that contains the feature information
> encoded in KML that I can pass directly into Google Earth. I know I can
> do this operation is I open the shapefile write the KML data to disk
> then open the kml file up with fopen then read it into memory and send
> it t Google Earth but I would like to save the disk write the read
> operation.
>
>
>
> Any thoughts?
Bruce,
I've skimmed the KML driver and there is no sign that it uses the VSI*L
API for file access, so I don't see any way you can write results to a
memory buffer without substantial recoding in the kml driver.
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