-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warp Reproject Runs but does nothing #58593
Comments
@Zuline , I could not reproduce this issue here, it might be dataset specific? A sample dataset to use alongside your steps to replicate the issue would be needed here. |
The ortho is too big to attach here. It can be downloaded at this link: https://ln5.sync.com/dl/402dcdf20/zv37byji-8n7k2ecr-43hatcmb-cyixk86p Regards |
I cannot replicate the issue on my Windoww 10 system using QGIS 3.38.2 (GDAL 3.9.2). @Zuline , please specify all the algorithm's parameters used and the full processing log. How do you say the output raster layer is not reprojected? Please also provide the output raster layer. |
The input CRS is specified by Warp Reproject as EPSG:32755 from inspection of the ortho. I accept that. The log is below and the ortho that results is in the same link as above. The reason I say that it is not reprojected is:
`QGIS version: 3.38.2-Grenoble GDAL command: Loading resulting layers |
@Zuline, QGIS actually uses gdalwarp (in your case, GDAL/OGR version 3.3.2) to perform the task with the specified parameters and the coordinate conversion is actually performed by the PROJ library (in your case, version 8.1.1) based on the EPSG Registry database version v10.028 (2021-07-07) (in your case) definitions. The provided files odm_orthophoto.tif and reproj-test.tif have different CRSs and extents (you can check using gdalinfo or in the layer properies in QGIS), so it seems to me the processing algorithm "Warp (Reproject)" actually performs the transformation (but probably not the way you expect):
Maybe @rouault know if there are knows issues. |
@agiudiceandrea thanks for your detailed comments. You are far more across the intimacies of this than I am. The version at the command line is: GDAL 3.9.2, released 2024/08/13. I don't explicitly use any NtV2 or grid shift files. The one thing I will say is that it's a fundamental misapprehension to treat this as a null transformation, that is to essentially cast EPSG:32755 and EPSG:7855 as being the same. At some point of equivalence when 7855 was first released that may have been the case or nearly the case. It's not so now. There is now a very substantial difference due to the plate fixed nature of 7855 and the transformation needs to deal with that, as it does at the command line. |
That would be more a debate for a discussion on the PROJ mailing list, but QGIS does what PROJ says about that, and PROJ says what the EPSG database says about, and in EPSG, EPSG:32755 is "WGS 84 / UTM zone 55S", based on the generic WGS 84 datum ensemble, not a particular realization of it. And in that case, the transformation between WGS 84 and GDA2020 is a null one. If you worke with a UTM projected CRS based on ITRF2014 (or "WGS 84 (G1762)" instead of WGS 84, then you could get a time-dependent transformation with PROJ. Demo: Given test.wkt containing
But to get a shift you need to specify a transformation coordinate epoch: At 2020.0, as the central epoch of the above transformation is 2020.0, you get no change:
At 2024.0, you get a few centimeters of shift:
But time-dependent coordinate transformations are (I believe, but I may be wrong) not yet available through QGIS UI tools. You may need to use GDAL command line utilities to do that. Cf https://gdal.org/en/latest/user/coordinate_epoch.html#support-in-utilities |
@rouault, it looks like the issue seems also due to the fact that gdalwarp used through the QGIS processing "Warp (Reproject)" GDAL algoritm on macOS (it uses GDAL 3.3.2 / PROJ 8.1.1) outputs a raster reportedly transformed in a not expected way, while using the same gdalwarp command on a separate command line environment (with GDAL 3.9.2, on the same system, not sure how it was installed and which PROJ version is linked to and which EPSG database and grids uses if any) outputs a raster reportedly transformed in an expected way.
The "Warp (Reproject)" processing algorithm allows to specify any additional command line parameter, thus also It also looks like the reported issue about "Warp Reproject does nothing" is not occurring even on the user system, since the georeferencing of the processing algorithm's output is actually different from the georeferencing of the processing algorithm's input, so Warp (Reproject) actually does something. Anyway it doesn't look like a QGIS issue. |
There are actually several transformations between WGS 84 and GDA2020 : one is a null transformation, and another one assumes that WGS 84 = GDA94, and thus applies a GDA94 <--> GDA2020 datum transformation, which is about 1.8 meter shift. What PROJ selects as the default transformation has evolved over PROJ / EPSG versions. That is the likely cause for different results on different platforms. Confirmed actually:
vs
As you can notice EPSG publishes all 3 transformations with the same accuracy of 3 m... |
I think we should close this. It's ultimately user error, even if the underlying cause is very tricky to understand. |
What is the bug or the crash?
Running MacOS (Apple Silicon M3)
Running Warp Reproject runs OK but the output is unchanged. Running the same command in gdalwarp in terminal results in the desired reprojection.
Steps to reproduce the issue
Expected Outcome: File will be reprojected into the target SRS
Actual Outcome: File is created but not reprojected
Versions
Active Python plugins
landxmlconvertor
0.2.0
QuickOSM
2.2.3
quick_map_services
0.19.34
DEMto3D
3.6
ViewshedAnalysis
1.9
qgis2web
3.22.0
processing_r
4.1.0
qfieldsync
v4.10.1
Qgis2threejs
2.7.3
mmqgis
2021.9.10
mapflow
2.6.2
processing
2.12.99
grassprovider
2.12.99
db_manager
0.1.20
MetaSearch
0.3.6
HCMGIS
24.8.27
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: