Skip to content

Commit

Permalink
[georef] Show messages when georeferencer creates a world file
Browse files Browse the repository at this point in the history
(fix #7429). Also fix raster not loaded into main canvas when
creating a world file (fix #10018).
  • Loading branch information
nyalldawson committed Jun 21, 2015
1 parent 9041950 commit 759d85a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -1333,17 +1333,20 @@ bool QgsGeorefPluginGui::georeference()
return false;
}

bool success = writeWorldFile( origin, pixelXSize, pixelYSize, rotation );
if ( success && !mPdfOutputFile.isEmpty() )
if ( !writeWorldFile( origin, pixelXSize, pixelYSize, rotation ) )
{
return false;
}

if ( !mPdfOutputFile.isEmpty() )
{
writePDFReportFile( mPdfOutputFile, mGeorefTransform );
}
if ( success && !mPdfOutputMapFile.isEmpty() )
if ( !mPdfOutputMapFile.isEmpty() )
{
writePDFMapFile( mPdfOutputMapFile, mGeorefTransform );
}


return true;
}
else // Helmert, Polinom 1, Polinom 2, Polinom 3
{
Expand Down
Expand Up @@ -226,7 +226,7 @@
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="mWorldFileCheckBox">
<property name="text">
<string>Create world file</string>
<string>Create world file only (linear transforms)</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 759d85a

Please sign in to comment.