<table><tr><td style="">dkolozsvari created this revision.<br />dkolozsvari added reviewers: nienhueser, rahn.<br />dkolozsvari added a subscriber: Marble.<br />dkolozsvari set the repository for this revision to rMARBLE Marble.<br />dkolozsvari added a project: Marble.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2417" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is a fast approach on how to add more nodes to the edges of the tiles. This is required for a nice rendering on non-Mercator projections. The results are pretty good, as seen on the second screenshot(first screenshot is without the added nodes).</p>
<p>Using <tt style="background: #ebebeb; font-size: 13px;">GeoDataCoordinates::interpolate()</tt> would be better(?) approach to generate the added nodes, but that would require to translate from <tt style="background: #ebebeb; font-size: 13px;">QPolygonF</tt> back to <tt style="background: #ebebeb; font-size: 13px;">GeoDataLineString</tt> in the cutting algorithm, and then convert it to a <tt style="background: #ebebeb; font-size: 13px;">QList<QSharedPointer<LinkedPoint>></tt>. If there is no visible benefit from using that approach, I would stick with this.</p>
<p>The formula to calculate the number of nodes to add can be changed,</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">MAXIMUM_POINTS_TO_ADD - zoomLevel</pre></div>
<p>is only for demonstration. Suggestions are welcome.</p>
<p>Before (problematic spots marked):<br />
<a href="https://phabricator.kde.org/F255735" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F255735: Screenshot_20160812_102318.png</a></p>
<p>After:<br />
<a href="https://phabricator.kde.org/F255737" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F255737: Screenshot_20160812_101924.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rMARBLE Marble</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2417" rel="noreferrer">https://phabricator.kde.org/D2417</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>tools/osm-simplify/BaseClipper.cpp<br />
tools/osm-simplify/BaseClipper.h<br />
tools/osm-simplify/ShpCoastlineProcessor.cpp<br />
tools/osm-simplify/TinyPlanetProcessor.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>dkolozsvari, nienhueser, rahn<br /><strong>Cc: </strong>Marble, shentey, chaz6, dkolozsvari, cmihalache, rahn, nienhueser, marble-devel<br /></div>