mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
e14bb76b95
commit
e5a7387abf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user