Opened 8 years ago

Last modified 8 years ago

#10659 new Bugs

svg_mapper output is offset for int-based point type

Reported by: Volker Schöch <vschoech@…> 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.

Change History (1)

comment:1 by Volker Schöch <vschoech@…>, 8 years ago

Note: See TracTickets for help on using tickets.