Skip to content

Commit

Permalink
Enhanced precision in georef plugin for 0.8.1 version
Browse files Browse the repository at this point in the history
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 7113c5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/georeferencer/qgspointdialog.cpp
Expand Up @@ -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))
Expand All @@ -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;
Expand Down

0 comments on commit 7113c5e

Please sign in to comment.