Tamas and Frank,<br><br>Thank you both for your replies.&nbsp; I tried Tamas&#39; suggestion and found the same problem.&nbsp; I suspect that my problem is that it is not finding the correct CSV files as Frank suggested.&nbsp; Because I am using the prebuilt binaries from FWTools, I have been copying the DLL files (e.g., gdal_csharp) into my c# application directories (debug/release) but linking to support files by simply including the appropriate directories (in my case: C:\Program Files\FWTools1.3.9\bin\;C:\Program Files\FWTools1.3.9) in the PATH environment variable.&nbsp; I am guessing that this works fine for libraries but does not help it locate the CSV files, is that correct?&nbsp; What is the right way to tell a C# application where/how to find these files?&nbsp; My apologies if this is a super basic question or has been answered repeated on this list - I am obviously new to this...<br>
<br>Any insights would be greatly appreciated.<br><br>- Kerry<br><br><div class="gmail_quote">On Tue, Apr 1, 2008 at 8:16 AM, Frank Warmerdam &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Kerry Halligan wrote:<br>
&gt; Can anyone help me out with problems reading the correct projection<br>
&gt; information from a TIFF image?<br>
&gt;<br>
&gt; I am using GDAL C# bindings from FWTools (1.3.9) and am getting unexpected<br>
&gt; results for projection information of TIFF files. &nbsp;If I use the gdalinfo<br>
&gt; utility I get the correct information, but if I use the gdal_csharp bindings<br>
&gt; I get &quot;unnamed&quot; as the projection. &nbsp;This is causing difficulty when<br>
&gt; comparing projections before processing multiple files. &nbsp;I am assuming this<br>
&gt; is a data and/or operator error, rather than a bug, but can anyone tell me<br>
&gt; what I might be doing wrong? &nbsp;I also tried this with the most recent version<br>
&gt; of FWTools and received the same results.<br>
&gt;<br>
</div>...<br>
&gt; *csharp code:<br>
<div class="Ih2E3d">&gt;<br>
&gt; Gdal.AllRegister();<br>
&gt; Dataset ds = Gdal.Open(infile, Access.GA_ReadOnly);<br>
&gt; // get the projection<br>
&gt; string proj = ds.GetProjection();<br>
&gt;<br>
&gt; printing &#39;proj&#39; produces:<br>
&gt; *<br>
&gt; &quot;PROJCS[\&quot;unnamed\&quot;,GEOGCS[\&quot;NAD83\&quot;,DATUM[\&quot;North_American_Datum_1983\&quot;,SPHEROID[\&quot;GRS<br>
&gt; 1980\&quot;,6378137,298.2572221010002<br>
&gt; ,AUTHORITY[\&quot;EPSG\&quot;,\&quot;7019\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;6269\&quot;]],PRIMEM[\&quot;Greenwich\&quot;,0],UNIT[\&quot;degree\&quot;,<br>
&gt; 0.0174532925199433],AUTHORITY[\&quot;EPSG\&quot;,\&quot;4269\&quot;]],UNIT[\&quot;US survey foot\&quot;,<br>
&gt; 0.3048006096012192<br>
&gt; ,AUTHORITY[\&quot;EPSG\&quot;,\&quot;9003\&quot;]],AUTHORITY[\&quot;EPSG\&quot;,\&quot;26954\&quot;]]&quot;<br>
<br>
</div>Kerry,<br>
<br>
I imagine this is due to either the GDAL_DATA or perhaps the GEOTIFF_CSV<br>
environment variable not pointing to the proper .csv files. &nbsp;The GeoTIFF<br>
driver uses these to expand some coordinate systems in GeoTIFF defined<br>
based on only an EPSG code. &nbsp;For some such common coordinate systems<br>
there is logic to expand them without the .csv files but some info<br>
(such as the projection name) may be lost. &nbsp;I presume this is what is<br>
happening to you.<br>
<br>
Note the FWTools Shell takes some effort to setup the environment<br>
carefully.<br>
<br>
Best regards,<br>
<font color="#888888"><br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up &nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush &nbsp; &nbsp;| President OSGeo, <a href="http://osgeo.org" target="_blank">http://osgeo.org</a><br>
<br>
</font></blockquote></div><br>