<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 10/11/2021 à 22:03,
<a class="moz-txt-link-abbreviated" href="mailto:Matt.Wilkie@yukon.ca">Matt.Wilkie@yukon.ca</a> a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:dc5c68312fa14d299fcada70c0f7b316@yukon.ca">
<pre class="moz-quote-pre" wrap="">Hi all,
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.
* If the images have no georeferencing how do ArcMap/Pro and Qgis know to put them in the right place?</pre>
</blockquote>
<p>Those images have RPC. You can see RPC information with gdalinfo
in the "RPC Metadata" section</p>
<p>listeo/geotiffcp and a number of utilities are not RPC aware. But
gdalwarp is.<br>
</p>
<blockquote type="cite"
cite="mid:dc5c68312fa14d299fcada70c0f7b316@yukon.ca">
<pre class="moz-quote-pre" wrap="">
* How can I convert whatever-this-is into proper georeferencing so that other tools know how to handle them too?</pre>
</blockquote>
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 class="moz-txt-link-freetext" href="https://gdal.org/api/gdal_alg.html?highlight=rpc_dem">https://gdal.org/api/gdal_alg.html?highlight=rpc_dem</a><br>
<blockquote type="cite"
cite="mid:dc5c68312fa14d299fcada70c0f7b316@yukon.ca">
<pre class="moz-quote-pre" wrap="">
Attached is a sample image. It was created with (on one line):
gdal_translate -outsize 100 0
-co compress=zstd -co predictor=yes -co level=17 -co bigtiff=yes -of cog
.\path\to\IMG_SPOT6_MS_001_A\DIM_SPOT6_MS_201609082010410_SEN_1.XML
source_tiny.tif
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.
thanks in advance for your thoughts,
Matt Wilkie
Geomatics Developer & Administrator
Environment | Technology, Innovation and Mapping
T 867-667-8133 | Yukon.ca
Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></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>