<div dir="ltr">I am using GDAL with C# bindings from gdal_csharp.dll and reading the projection information from an ERDAS Imagine file in Stateplane Projection (EPSG 2263).&nbsp; GDAL doesn&#39;t seem to be able to parse the stateplane projection information in the Imagine file correctly when writing out as a GeoTIFF.&nbsp; My assumption is that ERDAS is using a non standard syntax and this is preventing a match of the PROJCS tag?&nbsp; Has anyone encountered this before?&nbsp; Any clues or ideas at all would be much appreciated.<br>
<br>Thanks,<br>
<br>
Kerry Halligan<br><br><br>The gdalinfo result for this file includes:<br><br>Coordinate System is:<br>PROJCS[&quot;NAD83 / New York Long Island&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.257222101,<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;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.01745329251994328,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],<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;,41.03333333333333],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;standard_parallel_2&quot;,40.66666666666666],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;latitude_of_origin&quot;,40.16666666666666],<br>
&nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,-74],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,984250],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,0],<br>&nbsp;&nbsp;&nbsp; UNIT[&quot;us_survey_feet&quot;,0.3048006096012192]]<br>Origin = (983922.937212173830000,197166.639292352130000)<br>
Pixel Size = (10.000000000000000,-10.000000000000000)<br>Corner Coordinates:<br>Upper Left&nbsp; (&nbsp; 983922.937,&nbsp; 197166.639) ( 74d 0&#39;4.25&quot;W, 40d42&#39;28.27&quot;N)<br>Lower Left&nbsp; (&nbsp; 983922.937,&nbsp; 185976.639) ( 74d 0&#39;4.24&quot;W, 40d40&#39;37.70&quot;N)<br>
Upper Right (&nbsp; 992382.937,&nbsp; 197166.639) ( 73d58&#39;14.40&quot;W, 40d42&#39;28.26&quot;N)<br>Lower Right (&nbsp; 992382.937,&nbsp; 185976.639) ( 73d58&#39;14.44&quot;W, 40d40&#39;37.69&quot;N)<br>Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp; 988152.937,&nbsp; 191571.639) ( 73d59&#39;9.33&quot;W, 40d41&#39;32.98&quot;N)<br>
<br>If I use dataset.GetProjection() on this file, it returns the projection string as:<br><br>PROJCS[&quot;NAD83 / New York Long Island&quot;,<br>&nbsp;&nbsp;&nbsp; GEOGCS[&quot;NAD83&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATUM[&quot;North_American_Datum_1983&quot;,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SPHEROID[&quot;GRS 80&quot;,6378137,298.257222101,<br>&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; AUTHORITY[&quot;EPSG&quot;,&quot;6269&quot;]],<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.01745329251994328,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],<br>&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;,41.03333333333333]<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;standard_parallel_2&quot;,40.66666666666666]<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;latitude_of_origin&quot;,40.16666666666666]<br>
&nbsp;&nbsp;&nbsp; PARAMETER[&quot;central_meridian&quot;,-74],<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_easting&quot;,984250]<br>&nbsp;&nbsp;&nbsp; PARAMETER[&quot;false_northing&quot;,0],<br>&nbsp;&nbsp;&nbsp; UNIT[&quot;us_survey_feet&quot;,0.3048006096012192]]<br><br>What I expected to see for this dataset is:<br>
<pre>PROJCS[&quot;NAD83 / New York Long Island (ftUS)&quot;,<br>    GEOGCS[&quot;NAD83&quot;,<br>        DATUM[&quot;North_American_Datum_1983&quot;,<br>            SPHEROID[&quot;GRS 1980&quot;,6378137,298.257222101,<br>
                AUTHORITY[&quot;EPSG&quot;,&quot;7019&quot;]],<br>            AUTHORITY[&quot;EPSG&quot;,&quot;6269&quot;]],<br>        PRIMEM[&quot;Greenwich&quot;,0,<br>            AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>
        UNIT[&quot;degree&quot;,0.01745329251994328,<br>            AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],<br>        AUTHORITY[&quot;EPSG&quot;,&quot;4269&quot;]],<br>    UNIT[&quot;US survey foot&quot;,0.3048006096012192,<br>
        AUTHORITY[&quot;EPSG&quot;,&quot;9003&quot;]],<br>    PROJECTION[&quot;Lambert_Conformal_Conic_2SP&quot;],<br>    PARAMETER[&quot;standard_parallel_1&quot;,41.03333333333333],<br>    PARAMETER[&quot;standard_parallel_2&quot;,40.66666666666666],<br>
    PARAMETER[&quot;latitude_of_origin&quot;,40.16666666666666],<br>    PARAMETER[&quot;central_meridian&quot;,-74],<br>    PARAMETER[&quot;false_easting&quot;,984250.0000000002],<br>    PARAMETER[&quot;false_northing&quot;,0],<br>
    AUTHORITY[&quot;EPSG&quot;,&quot;2263&quot;],<br>    AXIS[&quot;X&quot;,EAST],<br>    AXIS[&quot;Y&quot;,NORTH]]</pre><br>If I use the string returned by GetProjection() as the projection information for an output GeoTIFF from GDAL, the image displays with a large horizontal offset despite having the same origin coordinates.&nbsp; It appears that the PROJCS information is not being handled correctly, so it is just coming up as Lambert Conformal Conic, but not stateplane New York Long Island.<br>
<br>If I export the data as a GeoTIFF (not as an Imagine file) from ERDAS, then the projection information is read in / written out just fine by GDAL.&nbsp; Based on this, I am assuming that GDAL isn&#39;t parsing out the PROJCS portion of the projection string correctly, likely because ERDAS isn&#39;t writing it correctly.&nbsp; <br>
<br><br><br></div>