<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18852">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial>&nbsp; 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.&nbsp;&nbsp;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.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Upendra</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=udadi@gmu.edu href="mailto:udadi@gmu.edu">Upendra Dadi</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=gdal-dev@lists.osgeo.org 
  href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 30, 2009 1:46 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [gdal-dev] reading geotiff data 
  from STDIN</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
  <DIV><FONT size=2 face=Arial>&nbsp; Is it possible to read geotiff data from 
  standard input(STDIN) and write to standard output (STDOUT) instead of 
  reading&nbsp;from a&nbsp;file? I see the following in the documentation to 
  GDALOpen():</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><TD valign="top"><EM>pszFilename</EM>&nbsp;</TD><TD>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.</DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>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? </FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>Ability to do this might be useful if using 
  GDAL&nbsp;in a&nbsp;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&nbsp;could make it a bit 
  easier to use GDAL within a Cloud environment. &nbsp;Thanks.</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT size=2 face=Arial>Upendra</FONT></DIV>
  <DIV><FONT size=2 face=Arial></FONT></TD></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>gdal-dev mailing 
  list<BR>gdal-dev@lists.osgeo.org<BR>http://lists.osgeo.org/mailman/listinfo/gdal-dev</BLOCKQUOTE></BODY></HTML>