<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="phone"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi everybody,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>I need to read geotiff with the gdal library. This
geotif had no projection so I opened it through Global Mapper and Export it in
order to have a projection within it. When I do a gdalinfo on the file I have :<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Driver: GTiff/GeoTIFF<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Files: testAvecProj.tif<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Size is 4000, 4000<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Coordinate System is:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'>PROJCS["NTF (Paris) / France II",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'> GEOGCS["NTF (Paris)",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'>
DATUM["Nouvelle_Triangulation_Francaise_Paris",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'> </span></font><font size=1 face=Arial><span
lang=EN-GB style='font-size:8.0pt;font-family:Arial'>SPHEROID["Clarke 1880
(IGN)",6378249.2,293.4660212936265,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>
AUTHORITY["EPSG","7011"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>
AUTHORITY["EPSG","6807"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PRIMEM["<st1:City w:st="on"><st1:place
w:st="on">Paris</st1:place></st1:City>",2.33722917],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> UNIT["degree",0.0174532925199433],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> AUTHORITY["EPSG","4807"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>
PROJECTION["Lambert_Conformal_Conic_1SP"],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PARAMETER["latitude_of_origin",46.8],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PARAMETER["central_meridian",0],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PARAMETER["scale_factor",0.99987742],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PARAMETER["false_easting",600000],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> PARAMETER["false_northing",2200000],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> UNIT["metre",1,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> AUTHORITY["EPSG","9001"]],<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> AUTHORITY["EPSG","27582"]]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Origin =
(601499.999999999420000,2428999.999999997700000)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Pixel Size = (0.125000000000000,-0.125000000000000)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Metadata:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> AREA_OR_POINT=Area<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Image Structure Metadata:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> COMPRESSION=PACKBITS<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> INTERLEAVE=BAND<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Corner Coordinates:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Upper Left ( 601500.000, <st1:phone o:ls="trans"
w:st="on">2429000.000</st1:phone>) ( 0d 1'13.55"E, 48d51'33.85"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Lower Left ( 601500.000, <st1:phone o:ls="trans"
w:st="on">2428500.000</st1:phone>) ( 0d 1'13.54"E, 48d51'17.67"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Upper Right ( 602000.000, <st1:phone o:ls="trans"
w:st="on">2429000.000</st1:phone>) ( 0d 1'38.07"E, 48d51'33.84"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Lower Right ( 602000.000, <st1:phone o:ls="trans"
w:st="on">2428500.000</st1:phone>) ( 0d 1'38.06"E, 48d51'17.66"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:8.0pt;
font-family:Arial'>Center ( 601750.000, <st1:phone o:ls="trans" w:st="on">2428750.000</st1:phone>)
( 0d 1'25.80"E, 48d51'25.75"N)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'>Band 1 Block=4000x1 Type=Byte, ColorInterp=Palette<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> Color Table (RGB with 256 entries)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> 0: 31,45,31,255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> 1: 30,52,40,255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> 2: 41,50,29,255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> 3: 39,46,35,255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-GB style='font-size:
8.0pt;font-family:Arial'> 4: 44,57,42,255<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>To read it I started from the example of the gdal website
: <a href="http://www.gdal.org/gdal_tutorial.html">http://www.gdal.org/gdal_tutorial.html</a><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>GDALAllRegister();<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New";color:blue'>this</span></font><font
size=2 face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:
"Courier New"'>->_pGDALDataSet = (GDALDataset *) GDALOpen(
_NomFichierImport.c_str(), GA_ReadOnly );<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>In debug mode, the pszProjection
field of _pGDALDataSet is :<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>PROJCS[“unamed”,GEOGCS[“unamed”,DATUM[“unknown”,SPHEROID[“unretrievable’
etc…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Can someone tell me what I
did wrong ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>Best regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New"'>François <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>