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()); }