Skip to content

Commit

Permalink
When autosaving the georeferencer gcp points, we MUST use the original
Browse files Browse the repository at this point in the history
raster file name for these and not the output raster file name

The GCPs relate specifically to the ORIGINAL image, not the warped
output exported after georeferencing. If we use the output file
name for the .points file then when THIS georeferenced output is
loaded into the georeferencer we get misleading location of
source GCP points, as the pixel coordinates are from the ORIGINAL
image, not the warped one.
  • Loading branch information
nyalldawson committed Feb 14, 2022
1 parent afaf6d3 commit 8821ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/georeferencer/qgsgeorefmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ bool QgsGeoreferencerMainWindow::georeference()
}
if ( mSaveGcp )
{
mGCPpointsFileName = mModifiedRasterFileName + QLatin1String( ".points" );
mGCPpointsFileName = mRasterFileName + QLatin1String( ".points" );
saveGCPs();
}
return true;
Expand Down

0 comments on commit 8821ea5

Please sign in to comment.