[geos-commits] r2945 - in branches/3.2: . capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Mar 19 11:09:52 EDT 2010
Author: strk
Date: 2010-03-19 11:09:52 -0400 (Fri, 19 Mar 2010)
New Revision: 2945
Modified:
branches/3.2/NEWS
branches/3.2/capi/geos_ts_c.cpp
Log:
Improve formatting for GEOSisValidReason_r (issue #329)
Modified: branches/3.2/NEWS
===================================================================
--- branches/3.2/NEWS 2010-03-18 18:39:55 UTC (rev 2944)
+++ branches/3.2/NEWS 2010-03-19 15:09:52 UTC (rev 2945)
@@ -1,7 +1,8 @@
Changes in 3.2.1
- Bug fixes:
- - False positive return from IsValidOp (#333)
+ - False positive return from IsValidOp (#333)
+ - Return up to 15 digits of precision from GEOSisValidReason_t (#329)
Changes in 3.2.0
Modified: branches/3.2/capi/geos_ts_c.cpp
===================================================================
--- branches/3.2/capi/geos_ts_c.cpp 2010-03-18 18:39:55 UTC (rev 2944)
+++ branches/3.2/capi/geos_ts_c.cpp 2010-03-19 15:09:52 UTC (rev 2945)
@@ -598,7 +598,10 @@
TopologyValidationError *err = ivo.getValidationError();
if (0 != err)
{
- const std::string errloc = err->getCoordinate().toString();
+ std::ostringstream ss;
+ ss.precision(15);
+ ss << err->getCoordinate();
+ const std::string errloc = ss.str();
std::string errmsg(err->getMessage());
errmsg += "[" + errloc + "]";
result = gstrdup(errmsg);
More information about the geos-commits
mailing list