Skip to content
Permalink
Browse files
Patch #2480 by Jack R: quote filenames in gdal scripts.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13230 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed Apr 3, 2010
1 parent 6d0a033 commit ef187cd03c6472f947de85a6bfb59aa58e7bdf2f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plugins/georeferencer/qgsgeorefplugingui.cpp
@@ -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( " " );
}
@@ -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( " " );
}
@@ -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( " " );
}

0 comments on commit ef187cd

Please sign in to comment.