mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ default to 6 digit precision in wkt generator for now
This commit is contained in:
parent
274fbf8f7a
commit
e82e5e2fb3
@ -147,8 +147,9 @@ struct wkt_coordinate_policy : karma::real_policies<T>
|
||||
static unsigned precision(T n)
|
||||
{
|
||||
if (n == 0.0) return 0;
|
||||
using namespace boost::spirit; // for traits
|
||||
return static_cast<unsigned>(15 - boost::math::trunc(log10(traits::get_absolute_value(n))));
|
||||
return 6;
|
||||
//using namespace boost::spirit; // for traits
|
||||
//return std::max(6u, static_cast<unsigned>(15 - boost::math::trunc(log10(traits::get_absolute_value(n)))));
|
||||
}
|
||||
|
||||
template <typename OutputIterator>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user