<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        mso-fareast-language:EN-CA;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thank you Even, especially for highlighting a DEM should be used. I ‘knew’ that but hadn’t taken the time to fully ingest the meaning.
 It’s drastically changed how I’m approaching this project.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#1F497D">-Matt</span><i><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></i></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Even Rouault <even.rouault@spatialys.com>
<br>
<b>Sent:</b> November 10, 2021 2:16 PM<br>
<b>To:</b> Matt.Wilkie <Matt.Wilkie@yukon.ca>; gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] georeferenced but not georeferenced?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Le 10/11/2021 à 22:03, <a href="mailto:Matt.Wilkie@yukon.ca">
Matt.Wilkie@yukon.ca</a> a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi all,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm creating images from SPOT6/7 archive DIMAP format. The resulting images display in the correct position in the world when combined with other sources, however all the usual tools say the images have no georeferencing. <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>* If the images have no georeferencing how do ArcMap/Pro and Qgis know to put them in the right place?<o:p></o:p></pre>
</blockquote>
<p>Those images have RPC. You can see RPC information with gdalinfo in the "RPC Metadata" section<o:p></o:p></p>
<p>listeo/geotiffcp and a number of utilities are not RPC aware. But gdalwarp is.<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><o:p> </o:p></pre>
<pre>* How can I convert whatever-this-is into proper georeferencing so that other tools know how to handle them too?<o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt">You can use gdalwarp to orthorectify them.  You should generally specify -to RPC_DEM=some_dem_with_elevation_as_ellipsoidal_heights or -to RPC_HEIGHT=ellipsoidal_height. See
<a href="https://gdal.org/api/gdal_alg.html?highlight=rpc_dem">https://gdal.org/api/gdal_alg.html?highlight=rpc_dem</a><br>
<br>
<span style="color:#1F497D"><o:p></o:p></span></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre><o:p> </o:p></pre>
<pre>Attached is a sample image.  It was created with (on one line):<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>    gdal_translate  -outsize 100 0 <o:p></o:p></pre>
<pre>    -co compress=zstd -co predictor=yes -co level=17 -co bigtiff=yes -of cog <o:p></o:p></pre>
<pre>    .\path\to\IMG_SPOT6_MS_001_A\DIM_SPOT6_MS_201609082010410_SEN_1.XML <o:p></o:p></pre>
<pre>    source_tiny.tif<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The biggest problem this causes me at the moment is that gdal_pansharpen.py output does not have any kind of goereferencing, and I can't use old faithfuls like listgeo, geotiffcp, or gdalcopyproj.py to copy the coordinate system across.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>thanks in advance for your thoughts,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Matt Wilkie<o:p></o:p></pre>
<pre>Geomatics Developer & Administrator<o:p></o:p></pre>
<pre>Environment | Technology, Innovation and Mapping<o:p></o:p></pre>
<pre>T 867-667-8133 | Yukon.ca<o:p></o:p></pre>
<pre>Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="https://imsva91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2fwww.spatialys.com&umid=9E426F74-D075-BC05-8F12-F338C4BD772D&auth=c132af8ee7c9d1278d61a701569070a095ce962e-893f1a6a29bf04fdcbd6545284ebfde530cc8c97">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</body>
</html>