Skip to content

Commit

Permalink
Patch #2480 by Jack R: quote filenames in gdal scripts.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13230 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed Apr 3, 2010
1 parent 9b1e0b9 commit 28ce9b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ QString QgsGeorefPluginGui::gdal_translateCommand( bool generateTFW )

QFileInfo rasterFileInfo( mRasterFileName );
mTranslatedRasterFileName = QDir::tempPath() + "/" + rasterFileInfo.fileName();
gdalCommand << mRasterFileName << mTranslatedRasterFileName;
gdalCommand << QString("\"%1\"").arg(mRasterFileName) << QString("\"%1\"").arg(mTranslatedRasterFileName);

return gdalCommand.join( " " );
}
Expand All @@ -1199,7 +1199,7 @@ QString QgsGeorefPluginGui::gdalwarpCommandGCP( QString resampling, QString comp
gdalCommand << "-tr" << QString::number( targetResX, 'f' ) << QString::number( targetResY, 'f' );
}

gdalCommand << mTranslatedRasterFileName << mModifiedRasterFileName;
gdalCommand << QString("\"%1\"").arg(mTranslatedRasterFileName) << QString("\"%1\"").arg(mModifiedRasterFileName);

return gdalCommand.join( " " );
}
Expand All @@ -1216,7 +1216,7 @@ QString QgsGeorefPluginGui::gdalwarpCommandTPS( QString resampling, QString comp
gdalCommand << "-tr" << QString::number( targetResX, 'f' ) << QString::number( targetResY, 'f' );
}

gdalCommand << mTranslatedRasterFileName << mModifiedRasterFileName;
gdalCommand << QString("\"%1\"").arg(mTranslatedRasterFileName) << QString("\"%1\"").arg(mModifiedRasterFileName);

return gdalCommand.join( " " );
}
Expand Down

0 comments on commit 28ce9b1

Please sign in to comment.