diff --git a/include/mapnik/util/geometry_wkt_generator.hpp b/include/mapnik/util/geometry_wkt_generator.hpp index 929168e81..04f25f303 100644 --- a/include/mapnik/util/geometry_wkt_generator.hpp +++ b/include/mapnik/util/geometry_wkt_generator.hpp @@ -147,8 +147,9 @@ struct wkt_coordinate_policy : karma::real_policies static unsigned precision(T n) { if (n == 0.0) return 0; - using namespace boost::spirit; // for traits - return static_cast(15 - boost::math::trunc(log10(traits::get_absolute_value(n)))); + return 6; + //using namespace boost::spirit; // for traits + //return std::max(6u, static_cast(15 - boost::math::trunc(log10(traits::get_absolute_value(n))))); } template