diff --git a/include/mapnik/geometry_strategy.hpp b/include/mapnik/geometry_strategy.hpp index eaa19257b..cc4121e60 100644 --- a/include/mapnik/geometry_strategy.hpp +++ b/include/mapnik/geometry_strategy.hpp @@ -185,8 +185,8 @@ struct scale_rounding_strategy using p2_type = typename boost::geometry::coordinate_type::type; double x = (boost::geometry::get<0>(p1) * scale_) + offset_; double y = (boost::geometry::get<1>(p1) * scale_) + offset_; - boost::geometry::set<0>(p2, static_cast(std::floor(x + 0.5))); - boost::geometry::set<1>(p2, static_cast(std::floor(y + 0.5))); + boost::geometry::set<0>(p2, static_cast(std::round(x))); + boost::geometry::set<1>(p2, static_cast(std::round(y))); return true; }