<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
Link below is to a sample IMG file on WeTransfer:</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<a id="LPlnk844531" href="https://we.tl/t-KtV9xCLaDF">https://we.tl/t-KtV9xCLaDF</a></div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
Depending on the computer, this is showing as:</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
EPSG: -1</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
EPSG: 26914</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
EPSG: 6343</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
when using gdalsrsinfo -e {image}</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
or</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
gdalsrsinfo -o epsg {image}</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
Thank you,</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
David C.</div>
<div id="geom_inter_1572629586706_31_48" style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div id="Signature">
<div>
<div id="appendonsend"></div>
<div id="geom_inter_1572629586706_24_49" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
jratike80 wrote:</div>
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>Subject:</b> Re: [gdal-dev] gdalsrsinfo Incorrect or Inconsistent results reporting EPSG codes</font>
<div id="geom_inter_1572629586706_18_50"> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText" id="geom_inter_1572629586706_94_51">Hi,<br>
<br>
Please make is easier for us to help you and provide a link to such raster<br>
file. It does not need to be your real, perhaps confidential data, a small<br>
extract is actually much better. Just take care that if shows all the issues<br>
that you wrote about. Meanwhile you can read<br>
<a href="https://trac.osgeo.org/gdal/wiki/rfc73_proj6_wkt2_srsbarn">https://trac.osgeo.org/gdal/wiki/rfc73_proj6_wkt2_srsbarn</a> and think if this<br>
change could explain some of your observations.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
David C. wrote<br>
> Hi,<br>
> <br>
> I've been having a problem using gdal to simply read/report EPSG headers<br>
> on rasters.  I am trying to use it to verify header projection information<br>
> is correct.<br>
> First, I am using Windows 10.<br>
> Rasters are Imagine .IMG format.<br>
> Command being used is   gdalsrsinfo -e {filename}<br>
> <br>
> I've tried gdal from various sources/vintages... the problem is I can only<br>
> get it to report the proper (expected) EPSG on 2 of 6 computers... even if<br>
> I take special care to follow same steps each time.  I am also using the<br>
> SAME EXACT image file each time.<br>
> <br>
> The projection is NAD83(2011) / UTM zone 14N.<br>
> So I expect to see EPSG:6343<br>
> <br>
> I'm often getting EPSG:26914<br>
> This is NAD83 / UTM zone 14N   (NOT 2011)<br>
> <br>
> Or I get EPSG:  -1<br>
> <br>
> The gdal install that works as expected on 2 of 6 computers is the version<br>
> that installs on Windows along with  OSgeo4w.  (GDAL 2.4.1 as reported by<br>
> "gdalsrsinfo --version" command)<br>
> <br>
> It only works if I run the gdalsrsinfo command from the C:\OSgeo4w\bin<br>
> folder.... If I run from anywhere else I get the other results mentioned.<br>
> Also, I've installed the same OSgeo4w on all 6 machines... and it only<br>
> works on two.<br>
> <br>
> Other GDAL binaries for Windows I got from the gisinternals website...<br>
> I've tried multiple versions (2.4.1, 2.4.2, 3.0....) and I'm running<br>
> through the command shell provided with that distribution....  All getting<br>
> different results (sometimes -1   sometimes  26914)   but I simply can't<br>
> find any consistency of WHY it is working sometimes and not others.<br>
> <br>
> One concern I have is that perhaps since GDAL is packaged with SO MANY<br>
> programs (ESRI, Qgis, Global Mapper, etc.) that perhaps the command is<br>
> calling incorrect libraries?<br>
> <br>
> Please... if anyone has ideas on WHY this is happening, or how to force<br>
> the command to run from a a CLEAN environment only using the libraries I<br>
> desire, I welcome input.<br>
> Sincerely,<br>
> David C.<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
<br>
> gdal-dev@.osgeo<br>
<br>
> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>