<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>&nbsp;</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>&nbsp;</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[&quot;NTF (Paris) / France II&quot;,<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[&quot;NTF (Paris)&quot;,<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[&quot;Nouvelle_Triangulation_Francaise_Paris&quot;,<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[&quot;Clarke 1880
(IGN)&quot;,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[&quot;EPSG&quot;,&quot;7011&quot;]],<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[&quot;EPSG&quot;,&quot;6807&quot;]],<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[&quot;<st1:City w:st="on"><st1:place
 w:st="on">Paris</st1:place></st1:City>&quot;,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[&quot;degree&quot;,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[&quot;EPSG&quot;,&quot;4807&quot;]],<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[&quot;Lambert_Conformal_Conic_1SP&quot;],<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[&quot;latitude_of_origin&quot;,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[&quot;central_meridian&quot;,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[&quot;scale_factor&quot;,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[&quot;false_easting&quot;,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[&quot;false_northing&quot;,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[&quot;metre&quot;,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[&quot;EPSG&quot;,&quot;9001&quot;]],<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[&quot;EPSG&quot;,&quot;27582&quot;]]<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&quot;E, 48d51'33.85&quot;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&quot;E, 48d51'17.67&quot;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&quot;E, 48d51'33.84&quot;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&quot;E, 48d51'17.66&quot;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&quot;E, 48d51'25.75&quot;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>&nbsp;</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>&nbsp;</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>&nbsp;</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"'>-&gt;_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>&nbsp;</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[&#8220;unamed&#8221;,GEOGCS[&#8220;unamed&#8221;,DATUM[&#8220;unknown&#8221;,SPHEROID[&#8220;unretrievable&#8217;
etc&#8230;<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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>