<!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> I found out how to do it. I just had to read
the documentation for <SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 12px; FONT-WEIGHT: bold; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px"
class=Apple-style-span>void VSIInstallMemFileHandler.</SPAN></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; WHITE-SPACE: nowrap; FONT-SIZE: 12px; FONT-WEIGHT: bold; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px"
class=Apple-style-span></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face="Times New Roman"><FONT size=3>Upendra</FONT></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 8:51
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [gdal-dev] VSIFile from a
string</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial> 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.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </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> 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():</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><TD valign="top"><EM>pszFilename</EM> </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> </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> </DIV>
<DIV><FONT size=2 face=Arial>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.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </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>
<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>