Skip to content

Commit 759d85a

Browse files
committedJun 21, 2015
[georef] Show messages when georeferencer creates a world file
(fix #7429). Also fix raster not loaded into main canvas when creating a world file (fix #10018).
1 parent 9041950 commit 759d85a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
 

‎src/plugins/georeferencer/qgsgeorefplugingui.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,17 +1333,20 @@ bool QgsGeorefPluginGui::georeference()
13331333
return false;
13341334
}
13351335

1336-
bool success = writeWorldFile( origin, pixelXSize, pixelYSize, rotation );
1337-
if ( success && !mPdfOutputFile.isEmpty() )
1336+
if ( !writeWorldFile( origin, pixelXSize, pixelYSize, rotation ) )
1337+
{
1338+
return false;
1339+
}
1340+
1341+
if ( !mPdfOutputFile.isEmpty() )
13381342
{
13391343
writePDFReportFile( mPdfOutputFile, mGeorefTransform );
13401344
}
1341-
if ( success && !mPdfOutputMapFile.isEmpty() )
1345+
if ( !mPdfOutputMapFile.isEmpty() )
13421346
{
13431347
writePDFMapFile( mPdfOutputMapFile, mGeorefTransform );
13441348
}
1345-
1346-
1349+
return true;
13471350
}
13481351
else // Helmert, Polinom 1, Polinom 2, Polinom 3
13491352
{

‎src/plugins/georeferencer/qgstransformsettingsdialogbase.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
<item row="2" column="0" colspan="2">
227227
<widget class="QCheckBox" name="mWorldFileCheckBox">
228228
<property name="text">
229-
<string>Create world file</string>
229+
<string>Create world file only (linear transforms)</string>
230230
</property>
231231
</widget>
232232
</item>

0 commit comments

Comments
 (0)
Please sign in to comment.