Subject: [Boost-bugs] [Boost C++ Libraries] #10659: svg_mapper output is offset for int-based point type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-15 15:45:23
#10659: svg_mapper output is offset for int-based point type
----------------------------------------+---------------------------
Reporter: Volker Schöch <vschoech@â¦> | Owner: barendgehrels
Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.56.0 | Severity: Problem
Keywords: svg_mapper, integer |
----------------------------------------+---------------------------
Based on the example from the
[http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/io/svg/svg_mapper.html
documentation] I find the following oddity: Simply change the following
line
{{{
typedef boost::geometry::model::d2::point_xy<double> point_type;
}}}
into
{{{
typedef boost::geometry::model::d2::point_xy<int> point_type;
}}}
Nota bene: All values in the example code are integral numbers, anyway.
Yet, the resulting output is different, see attached files. In case of
int, the entire graphic is considerably offset to the north.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10659> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC