[geos-commits] [SCM] GEOS branch master updated. cb6e27944bf53f683797f314630862d9ee5fa73b

git at osgeo.org git at osgeo.org
Thu Jan 7 12:28:05 PST 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  cb6e27944bf53f683797f314630862d9ee5fa73b (commit)
      from  29825c7231c365f7157756597d0c7e9899b62b7d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cb6e27944bf53f683797f314630862d9ee5fa73b
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu Jan 7 12:27:55 2021 -0800

    Improve geosop WKT numeric output

diff --git a/util/geosop/GeosOp.cpp b/util/geosop/GeosOp.cpp
index 00bccfa..dbdae31 100644
--- a/util/geosop/GeosOp.cpp
+++ b/util/geosop/GeosOp.cpp
@@ -455,10 +455,9 @@ void GeosOp::outputGeometry(const Geometry * geom) {
         // output as text/WKT
         WKTWriter writer;
         // turn off stoopid fixed precision
-        //writer.setTrim(true);
+        writer.setTrim(true);
         if (args.precision >= 0) {
-            writer.setTrim(true);
-            writer.setRoundingPrecision(args.precision);
+             writer.setRoundingPrecision(args.precision);
         }
         std::cout << writer.write(geom) << std::endl;
     }

-----------------------------------------------------------------------

Summary of changes:
 util/geosop/GeosOp.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list