[geos-commits] r3521 - in branches/3.3: . src/geom
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Nov 29 09:01:26 EST 2011
Author: strk
Date: 2011-11-29 06:01:25 -0800 (Tue, 29 Nov 2011)
New Revision: 3521
Modified:
branches/3.3/NEWS
branches/3.3/src/geom/Coordinate.cpp
Log:
Use 18 significant digits for TopologyException point coordinates
Modified: branches/3.3/NEWS
===================================================================
--- branches/3.3/NEWS 2011-11-28 08:53:03 UTC (rev 3520)
+++ branches/3.3/NEWS 2011-11-29 14:01:25 UTC (rev 3521)
@@ -6,6 +6,7 @@
- Missing versions update in CMake configuration (#490)
- Fix noding of self-intersecting lines through UnaryUnion (#482)
- Fix handling of collapsed edges skipping in BufferOp (#494)
+ - Print up to 18 digits of precision for TopologyException points
Changes in 3.3.1
2011-09-27
Modified: branches/3.3/src/geom/Coordinate.cpp
===================================================================
--- branches/3.3/src/geom/Coordinate.cpp 2011-11-28 08:53:03 UTC (rev 3520)
+++ branches/3.3/src/geom/Coordinate.cpp 2011-11-29 14:01:25 UTC (rev 3521)
@@ -18,6 +18,7 @@
#include <sstream>
#include <string>
+#include <iomanip>
#ifndef GEOS_INLINE
# include <geos/geom/Coordinate.inl>
@@ -40,7 +41,7 @@
Coordinate::toString() const
{
ostringstream s;
- s<<*this;
+ s << std::setprecision(17) << *this;
return s.str();
}
More information about the geos-commits
mailing list