Added precision to wellKnownText function

git-svn-id: http://svn.osgeo.org/qgis/trunk@1798 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-07-21 05:45:35 +00:00
parent e14bb76b95
commit e5a7387abf

View File

@ -37,7 +37,7 @@ QString QgsPoint::stringRep(int thePrecision) const
}
QString QgsPoint::wellKnownText()
{
return QString("POINT(%1 %2)".arg(m_x).arg(m_y));
return QString("POINT(%1 %2)").arg(QString::number(m_x, 'f', 18)).arg(QString::number(m_y, 'f', 18));
}
// operators
bool QgsPoint::operator==(const QgsPoint & other)