diff --git a/include/mapnik/geometry/boost_adapters.hpp b/include/mapnik/geometry/boost_adapters.hpp index 644d7e156..8635ef02f 100644 --- a/include/mapnik/geometry/boost_adapters.hpp +++ b/include/mapnik/geometry/boost_adapters.hpp @@ -133,39 +133,45 @@ struct interior_rings namespace boost { namespace geometry { namespace traits { -template<> struct tag > { using type = box_tag; }; +template +struct tag > +{ + using type = box_tag; +}; + template<> struct point_type > { using type = mapnik::coord2d; }; +template<> struct point_type > { using type = mapnik::coord2f; }; -template <> -struct indexed_access, min_corner, 0> +template +struct indexed_access, min_corner, 0> { - using ct = coordinate_type::type; - static inline ct get(mapnik::box2d const& b) { return b.minx();} - static inline void set(mapnik::box2d &b, ct const& value) { b.set_minx(value); } + using ct = CoordinateType; + static inline ct get(mapnik::box2d const& b) { return b.minx();} + static inline void set(mapnik::box2d &b, ct const& value) { b.set_minx(value); } }; -template <> -struct indexed_access, min_corner, 1> +template +struct indexed_access, min_corner, 1> { - using ct = coordinate_type::type; - static inline ct get(mapnik::box2d const& b) { return b.miny();} - static inline void set(mapnik::box2d &b, ct const& value) { b.set_miny(value); } + using ct = CoordinateType; + static inline ct get(mapnik::box2d const& b) { return b.miny();} + static inline void set(mapnik::box2d &b, ct const& value) { b.set_miny(value); } }; -template <> -struct indexed_access, max_corner, 0> +template +struct indexed_access, max_corner, 0> { - using ct = coordinate_type::type; - static inline ct get(mapnik::box2d const& b) { return b.maxx();} - static inline void set(mapnik::box2d &b, ct const& value) { b.set_maxx(value); } + using ct = CoordinateType; + static inline ct get(mapnik::box2d const& b) { return b.maxx();} + static inline void set(mapnik::box2d &b, ct const& value) { b.set_maxx(value); } }; -template <> -struct indexed_access, max_corner, 1> +template +struct indexed_access, max_corner, 1> { - using ct = coordinate_type::type; - static inline ct get(mapnik::box2d const& b) { return b.maxy();} - static inline void set(mapnik::box2d &b , ct const& value) { b.set_maxy(value); } + using ct = CoordinateType; + static inline ct get(mapnik::box2d const& b) { return b.maxy();} + static inline void set(mapnik::box2d &b , ct const& value) { b.set_maxy(value); } }; template