<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Matt,</p>
<p>surprisingly or not, the GTiff driver doesn't try to get the SRS
from a .prj side car file.<br>
</p>
<p>So just do </p>
<p>gdal_edit.py 047_0001.tif -a_srs "$(cat 047_0001.prj)"</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 31/01/2024 à 20:22, Matt.Wilkie via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:YT3PR01MB559058A7367D86E3984848FA877C2@YT3PR01MB5590.CANPRD01.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello gdal,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a collection of aerial photos for
which neither gdal nor arc pro recognize the projection. To my
eye the .prj files look ok. Attached txt is gdalinfo v3.8.0
report along with the .prj. I manually formatted the below for
readability:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PROJCS["UTM_07N",<o:p></o:p></p>
<p class="MsoNormal"> GEOGCS["NAD83-CSRS Epoch 2006 (7
Param+Vel)",<o:p></o:p></p>
<p class="MsoNormal"> DATUM["NAD83-CSRS Epoch 2006 (7
Param+Vel)",<o:p></o:p></p>
<p class="MsoNormal"> SPHEROID["GRS 80",
6378137,298.2572221010002],<o:p></o:p></p>
<p class="MsoNormal"> TOWGS84[1.0026,-1.9083,-0.5165,
1.288877171229702e-07, 8.998141921392988e-09,
5.376098909823645e-08, -1.18e-09]],<o:p></o:p></p>
<p class="MsoNormal"> PRIMEM["Greenwich",0],<o:p></o:p></p>
<p class="MsoNormal"> UNIT["degree",0.0174532925199433]<o:p></o:p></p>
<p class="MsoNormal"> ],<o:p></o:p></p>
<p class="MsoNormal"> PROJECTION["Transverse_Mercator"],<o:p></o:p></p>
<p class="MsoNormal"> PARAMETER["latitude_of_origin",0],<o:p></o:p></p>
<p class="MsoNormal"> PARAMETER["central_meridian",-141],<o:p></o:p></p>
<p class="MsoNormal"> PARAMETER["scale_factor",0.9996],<o:p></o:p></p>
<p class="MsoNormal"> PARAMETER["false_easting",500000],<o:p></o:p></p>
<p class="MsoNormal"> PARAMETER["false_northing",0],<o:p></o:p></p>
<p class="MsoNormal"> UNIT["metres",1]<o:p></o:p></p>
<p class="MsoNormal"> ]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"
style="margin-top:4.0pt;line-height:115%;text-autospace:none;vertical-align:middle">
<b><span
style="font-size:10.0pt;line-height:115%;mso-fareast-language:EN-CA"
lang="EN-US">Matt Wilkie</span></b><span
style="font-size:10.0pt;line-height:115%;mso-ligatures:none;mso-fareast-language:EN-CA"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;mso-fareast-language:EN-CA"
lang="EN-US">Geomatics Developer & Administrator<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;mso-fareast-language:EN-CA"
lang="EN-US">Environment
<span style="color:#2E74B5">|</span> Technology, Innovation
and Mapping<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;mso-fareast-language:EN-CA"
lang="EN-US">T 867-667-8133
<span style="color:#2E74B5">|</span> </span><u><span
style="font-size:10.0pt;mso-fareast-language:EN-CA"><a
href="http://yukon.ca/" moz-do-not-send="true"><span
style="color:windowtext" lang="EN-US">Yukon.ca</span></a><o:p></o:p></span></u></p>
<p class="MsoNormal"><i><span
style="font-size:10.0pt;mso-fareast-language:EN-CA">Hours:
08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.<o:p></o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>