From ef62f16ba5bbe63fdad3844249fbb77ca5c3170c Mon Sep 17 00:00:00 2001 From: Patrick Hayes Date: Sat, 5 May 2012 13:23:42 -0700 Subject: [PATCH] Auto trimming uneeded significant digits --- lib/adapters/WKT.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/adapters/WKT.class.php b/lib/adapters/WKT.class.php index 6c68fced..bc25529f 100644 --- a/lib/adapters/WKT.class.php +++ b/lib/adapters/WKT.class.php @@ -200,6 +200,7 @@ public function write(Geometry $geometry) { // If geos is installed, then we take a shortcut and let it write the WKT if (geoPHP::geosInstalled()) { $writer = new GEOSWKTWriter(); + $writer->setTrim(TRUE); return $writer->write($geometry->geos()); }