Opened 8 years ago
Last modified 8 years ago
#10659 new Bugs
svg_mapper output is offset for int-based point type
Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|
Milestone: | To Be Determined | Component: | geometry |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | svg_mapper, integer | Cc: |
Description
Based on the example from the 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.
Note:
See TracTickets
for help on using tickets.
Here is the output from running the example for double vs. int:
http://lists.boost.org/geometry/att-3132/int.svg
http://lists.boost.org/geometry/att-3132/double.svg