[geos-commits] r3522 - trunk/src/geom
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Nov 29 09:01:56 EST 2011
Author: strk
Date: 2011-11-29 06:01:56 -0800 (Tue, 29 Nov 2011)
New Revision: 3522
Modified:
trunk/src/geom/Coordinate.cpp
Log:
Use 18 significant digits for TopologyException point coordinates
Modified: trunk/src/geom/Coordinate.cpp
===================================================================
--- trunk/src/geom/Coordinate.cpp 2011-11-29 14:01:25 UTC (rev 3521)
+++ trunk/src/geom/Coordinate.cpp 2011-11-29 14:01:56 UTC (rev 3522)
@@ -17,6 +17,7 @@
#include <sstream>
#include <string>
+#include <iomanip>
#ifndef GEOS_INLINE
# include <geos/geom/Coordinate.inl>
@@ -39,7 +40,7 @@
Coordinate::toString() const
{
ostringstream s;
- s<<*this;
+ s << std::setprecision(17) << *this;
return s.str();
}
More information about the geos-commits
mailing list