[gdal-dev] VSIFile from a string

Upendra Dadi udadi at gmu.edu
Mon Nov 30 08:51:58 EST 2009

  In reference to my previous post, one way I could solve my problem is to create a memory file from a c++ string which contains a Geotiff file.  Can anyone please tell how to create a memory file using a char array? How do I read from and write to memory files? Thanks.

  ----- Original Message ----- 
  From: Upendra Dadi 
  To: gdal-dev at lists.osgeo.org 
  Sent: Monday, November 30, 2009 1:46 AM
  Subject: [gdal-dev] reading geotiff data from STDIN

    Is it possible to read geotiff data from standard input(STDIN) and write to standard output (STDOUT) instead of reading from a file? I see the following in the documentation to GDALOpen():

  pszFilename the name of the file to access. In the case of exotic drivers this may not refer to a physical file, but instead contain information for the driver on how to access a dataset.

  What options does Geotiff driver have for pszFilename? If I want to modify Geotiff driver to read and write from STDIN and STDOUT respectively, which files should I be looking at? 

  Ability to do this might be useful if using GDAL in a Hadoop MapReduce job with streaming. Geotiff format could be the serialization format that MapReduce expects. If it is not already there, it might be useful to add this feature. It could make it a bit easier to use GDAL within a Cloud environment.  Thanks.



  gdal-dev mailing list
  gdal-dev at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091130/cc93aa6b/attachment-0001.html

More information about the gdal-dev mailing list