Skip to content

Commit

Permalink
Auto trimming uneeded significant digits
Browse files Browse the repository at this point in the history
  • Loading branch information
phayes committed May 5, 2012
1 parent 49c4416 commit ef62f16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/adapters/WKT.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit ef62f16

Please sign in to comment.