The following figure shows my QGIS-3.16-Canvas with an excerpt of a TrueOrtophoto (tif), with a 10-meters-point-grid in front corresponding to the pixel size of my satellite imagery. (The Ortophotos CRS is EPSG:8687 - Slovenia 1996 / UTM zone 33N, Layer-projection is EPSG:32633 - WGS 84 / UTM zone 33N)
Now, I want to re-georeference the the whole TrueDOP of about 1 sqare kilometer (not only the excerpt) by about 20 meters towards west and 10 meters towards north (see red arrows).
I recently had a similar question (QGIS: Shifting ortophotos by some meters to equalize the mismatch/offset/incongruence with satellite imagery), in which Tisham Dhar suggested to work with this GDAL Georeferencer tool.
I had a look at it, and if I understood this tool right: There, I load the Raster-image separately (not using it by refering to QGis-Layers). You set your source and destination Ground Control Points (GCP) in the Georeferencer-tool-canvas and run the georeferencing.
But, what I'm looking for is a solution where I can
- use the raster-image out of my layers and as they are projected there,
- use my raster points including the snapping options in order to define my GCPs.
- ideally - as I have a lot of TrueDOPs - proceed multiple layers/images at once.
That means, the tool should either work directly in the QGIS-Canvas, or may have its own canvas, but with using my QGIS-layers (with snapping functionality) as source, or ...(?)
In the end it would enough or even better not to re-georeference the image itself, but just modifying the layer / layer-CRS in order to display the images these few meters more west/north.
At the beginning I thought, this should be quite easy, but I am stacking ...
Anybody an idea (built-in tool, plugin, ...) for me?
By the way: I already found the Freehand raster georeferencer plugin, which works quite smart for some similar purposes, I think. But not for my current case. It's just freehand and cannot use both (snapping or typing in cordinates). Furtheron, it does not use the QGIS-layer-properties, but an proprietary layer-properties format discarding also the layer-CRS-information.
Edit referring to bugmenot123:
- I cannot really say the georeference ist wrong, or what exactly is wrong. The only thing I know for sure, that my TrueDOPs differ from my Sentinel imagery by an offset of about 20 m. And that my Sentinel-Imagery ist coregistered to Landsat, so the Sentinels' georeferencing accuracy should now be quite good. At least visual control suggests that: Sentinel-images match now quite well to Landsat and between each other.
Thus, I rather guess, that something with the TrueDOPs is wrong.
Here an example of the offset
o At the first image you see a section of the floodplain (one of my TrueDOPs), with a red line along the water channels (and a segement of the street at the right).
o The second figure shows the red line and in the background one of the my Sentinel images (NIR-Band), of course with according date. White (to very bright green) are water channels. As you will quickly see, there is an offset of about 20 meters = two pixels, mainly in an East-West-direction.
- I don't know how the TrueDOPs are georeferrenced. I got them from Italian authorities. The only thing I know at the moment is that the creation of the TrueDOPs is outsourced to a private company. The only general informations I have according to the website are: Original reference system is RDN2008-TM33NE.
(I already asked the authorities for the way the company is using. Unfortunatly I get no answer at the moment because of holidays. But I am not sure whether an answer will help much to me, because I expect the answer to be very specific, probably too specific for me, as I am not a geographer, but an ecologist. Anyway I don't want to rely too much on still getting an answer from there). - Metadata: Here the layer-properties/information of one of my ecw-TrueDOPs
- I don't know what sidecar files are. If you mean external metadata files, I do not have any. I just had a quick look at the download website, but I could not find any.
So, if I cannot figure out a specific error and correct it, I would tend to move my TrueDOPs this 20 meters freehand or by eye, respectively (I need them for classification purposes), but would like to move them all exactly the same and traceable ammount. With the mentionned freehand tool this is not possible.
gdalwarp -ct (proj affine transformation pipeline)