mapnik/mapnik — Issue #1009: Path.to_wkt() should have configurable precision
Author: springmeyer
Created: 2012-01-06 01:46:09+00:00
State: open

While 6 seems like a reasonable value for meters, we should likely not [hardcode](https://github.com/mapnik/mapnik/blob/master/include/mapnik/util/geometry_wkt_generator.hpp#L132) to make sure degrees can be supported. I notice that [ogr2ogr dumps csv's](http://www.gdal.org/ogr/drv_csv.html) plays it safe by dumping 14 digits leading to test failures when compared:

```
AssertionError: 'POLYGON((7.904185 54.180426,7.899181 54.178168,7.897716 54.182318,7.893565 54.183112,7.890391 54.187567,7.885875 54.19068,7.879893 54.193915,7.894542 54.194648,7.900645 54.19068,7.904185 54.180426))' != 'POLYGON ((7.904185417583761 54.180426336712856,7.89918053477129 54.178168035931549,7.897715691021261 54.182318426556606,7.893565300396205 54.183111883587884,7.89039147227129 54.187567449994106,7.885874870708761 54.190680242962827,7.879893425396261 54.193915106244049,7.894541862896233 54.194647528119134,7.900645378521233 54.190680242962827,7.904185417583761 54.180426336712856))'
```