Skip to content
Permalink
Browse files

Georeferencer: Fix a bug in GDAL script generation.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12966 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing
mmassing committed Feb 23, 2010
1 parent 84752bb commit 5c00985147e171a637f1ce3946f238df3bf20851
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/plugins/georeferencer/qgsgeorefplugingui.cpp
@@ -297,17 +297,24 @@ void QgsGeorefPluginGui::generateGDALScript()
if (QgsGeorefTransform::Linear != mTransformParam
&& QgsGeorefTransform::Helmert != mTransformParam)
{
// CAVEAT: gdalwarpCommand*() rely on some member variables being set
// by gdal_translateCommand(), so this method must be called before
// gdalwarpCommand*()!
QString translateCommand = gdal_translateCommand();
QString gdalwarpCommand;
QString resamplingStr = convertResamplingEnumToString(mResamplingMethod);
if (QgsGeorefTransform::ThinPlateSpline == mTransformParam)
{
gdalwarpCommand = gdalwarpCommandTPS(resamplingStr, mCompressionMethod, mUseZeroForTrans,
mUserResX, mUserResY);
}
else
{
gdalwarpCommand = gdalwarpCommandGCP(resamplingStr, mCompressionMethod, mUseZeroForTrans,
polynomeOrder(mTransformParam),
mUserResX, mUserResY);

showGDALScript(2, gdal_translateCommand().toAscii().data(), gdalwarpCommand.toAscii().data());
}
showGDALScript(2, translateCommand.toAscii().data(), gdalwarpCommand.toAscii().data());
}
else
{

0 comments on commit 5c00985

Please sign in to comment.
You can’t perform that action at this time.