Can anyone help me out with problems reading the correct projection information from a TIFF image?<br><br>I am using GDAL C# bindings from FWTools (1.3.9) and am getting unexpected results for projection information of TIFF files.&nbsp; If I use the gdalinfo utility I get the correct information, but if I use the gdal_csharp bindings I get &quot;unnamed&quot; as the projection.&nbsp; This is causing difficulty when comparing projections before processing multiple files.&nbsp; I am assuming this is a data and/or operator error, rather than a bug, but can anyone tell me what I might be doing wrong?&nbsp; I also tried this with the most recent version of FWTools and received the same results.<br>
<br>Sample outputs are listed below:<br><br><b>gdalinfo results:</b><br><br>C:\Program Files\FWTools1.3.9&gt;gdalinfo E:\Imagery\ortho\drcog\3130375_1610645.tif<br>Driver: GTiff/GeoTIFF<br>Files: E:\Imagery\ortho\drcog\3130375_1610645.tif<br>
Size is 5000, 5000<br>Coordinate System is:<br>PROJCS[&quot;NAD83 / Colorado Central&quot;,<br>&nbsp;&nbsp;&nbsp; GEOGCS[&quot;NAD83&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATUM[&quot;North_American_Datum_1983&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;GRS 1980&quot;,6378137,298.2572221010002,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7019&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6269&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4269&quot;]],<br>&nbsp;&nbsp;&nbsp; PROJECTION[&quot;Lambert_Conformal_Conic_2SP&quot;],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;standard_parallel_1&quot;,39.75],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;standard_parallel_2&quot;,38.45],<br>
&nbsp;&nbsp;&nbsp; PARAMETER[&quot;latitude_of_origin&quot;,37.83333333333334],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,-105.5],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,3000000.000316083],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,999999.999996],<br>
&nbsp;&nbsp;&nbsp; UNIT[&quot;US survey foot&quot;,0.3048006096012192,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9003&quot;]],<br>&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;26954&quot;]]<br>Origin = (3130375.000000000000000,1615645.000000000000000)<br>
Pixel Size = (1.000000000000000,-1.000000000000000)<br>Metadata:<br>&nbsp; AREA_OR_POINT=Area<br>&nbsp; TIFFTAG_SOFTWARE=Adobe Photoshop 7.0<br>&nbsp; TIFFTAG_DATETIME=2006:10:27 09:33:52<br>&nbsp; TIFFTAG_XRESOLUTION=72<br>&nbsp; TIFFTAG_YRESOLUTION=72<br>
&nbsp; TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>Corner Coordinates:<br>Upper Left&nbsp; ( 3130375.000, 1615645.000) (105d 2&#39;16.18&quot;W, 39d31&#39;22.13&quot;N)<br>Lower Left&nbsp; ( 3130375.000, 1610645.000) (105d 2&#39;16.50&quot;W, 39d30&#39;32.71&quot;N)<br>
Upper Right ( 3135375.000, 1615645.000) (105d 1&#39;12.37&quot;W, 39d31&#39;21.87&quot;N)<br>Lower Right ( 3135375.000, 1610645.000) (105d 1&#39;12.71&quot;W, 39d30&#39;32.45&quot;N)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 3132875.000, 1613145.000) (105d 1&#39;44.44&quot;W, 39d30&#39;57.29&quot;N)<br>
Band 1 Block=5000x1 Type=Byte, ColorInterp=Red<br>Band 2 Block=5000x1 Type=Byte, ColorInterp=Green<br>Band 3 Block=5000x1 Type=Byte, ColorInterp=Blue<br><br><b>csharp code:<br><br>Gdal.AllRegister();<br>Dataset ds = Gdal.Open(infile, Access.GA_ReadOnly);<br>
// get the projection<br>string proj = ds.GetProjection();<br><br>printing &#39;proj&#39; produces:<br></b><br>&quot;PROJCS[\&quot;unnamed\&quot;,GEOGCS[\&quot;NAD83\&quot;,DATUM[\&quot;North_American_Datum_1983\&quot;,SPHEROID[\&quot;GRS 1980\&quot;,6378137,298.2572221010002,AUTHORITY[\&quot;EPSG\&quot;,\&quot;7019\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;6269\&quot;]],PRIMEM[\&quot;Greenwich\&quot;,0],UNIT[\&quot;degree\&quot;,0.0174532925199433],AUTHORITY[\&quot;EPSG\&quot;,\&quot;4269\&quot;]],UNIT[\&quot;US survey foot\&quot;,0.3048006096012192,AUTHORITY[\&quot;EPSG\&quot;,\&quot;9003\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;26954\&quot;]]&quot;<br>