Skip to content
Permalink
Browse files
Enhanced precision in georef plugin for 0.8.1 version
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6889 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 16, 2007
1 parent 271b590 commit 7113c5ef8ce20b01f756ea6bff1bcf8f971948bc
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/plugins/georeferencer/qgspointdialog.cpp
@@ -374,12 +374,12 @@ bool QgsPointDialog::generateWorldFile()
return false;
}
QTextStream stream(&file);
stream<<pixelXSize<<endl
stream<<QString::number(pixelXSize, 'f', 15)<<endl
<<0<<endl
<<0<<endl
<<-pixelYSize<<endl
<<(origin.x() - xOffset * pixelXSize)<<endl
<<(origin.y() + yOffset * pixelYSize)<<endl;
<<QString::number(-pixelYSize, 'f', 15)<<endl
<<QString::number((origin.x() - xOffset * pixelXSize), 'f', 15)<<endl
<<QString::number((origin.y() + yOffset * pixelYSize), 'f', 15)<<endl;
// write the data points in case we need them later
QFile pointFile(mLayer->source() + ".points");
if (pointFile.open(QIODevice::WriteOnly))
@@ -389,8 +389,8 @@ bool QgsPointDialog::generateWorldFile()
for (unsigned int i = 0; i < mapCoords.size(); ++i)
{
points<<(QString("%1\t%2\t%3\t%4").
arg(mapCoords[i].x()).arg(mapCoords[i].y()).
arg(pixelCoords[i].x()).arg(pixelCoords[i].y()))<<endl;
arg(mapCoords[i].x()).arg(mapCoords[i].y(), 0, 'f', 15).
arg(pixelCoords[i].x()).arg(pixelCoords[i].y(), 0, 'f', 15))<<endl;
}
}
return true;

0 comments on commit 7113c5e

Please sign in to comment.