Boost C++ Libraries: Ticket #10659: svg_mapper output is offset for int-based point type https://svn.boost.org/trac10/ticket/10659 <p> Based on the example from the <a href="http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/reference/io/svg/svg_mapper.html">documentation</a> I find the following oddity: Simply change the following line </p> <pre class="wiki">typedef boost::geometry::model::d2::point_xy&lt;double&gt; point_type; </pre><p> into </p> <pre class="wiki">typedef boost::geometry::model::d2::point_xy&lt;int&gt; point_type; </pre><p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10659 Trac 1.4.3 Volker Schöch <vschoech@…> Wed, 15 Oct 2014 15:50:39 GMT <link>https://svn.boost.org/trac10/ticket/10659#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10659#comment:1</guid> <description> <p> Here is the output from running the example for <strong>double</strong> vs. <strong>int</strong>:<br /> <a class="ext-link" href="http://lists.boost.org/geometry/att-3132/int.svg"><span class="icon">​</span>http://lists.boost.org/geometry/att-3132/int.svg</a> <br /> <a class="ext-link" href="http://lists.boost.org/geometry/att-3132/double.svg"><span class="icon">​</span>http://lists.boost.org/geometry/att-3132/double.svg</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>