Le 10/11/2021 à 22:03, [email protected] a écrit :
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?
Those images have RPC. You can see RPC information with gdalinfo in the
"RPC Metadata" section
listeo/geotiffcp and a number of utilities are not RPC aware. But
gdalwarp is.
* How can I convert whatever-this-is into proper georeferencing so that other
tools know how to handle them too?
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
https://gdal.org/api/gdal_alg.html?highlight=rpc_dem
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.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev