Adding more points to the edges of the tiles
ClosedPublic

Authored by dkolozsvari on Aug 12 2016, 8:50 AM.

Details

Reviewers
nienhueser
rahn
Summary

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).

Using GeoDataCoordinates::interpolate() would be better(?) approach to generate the added nodes, but that would require to translate from QPolygonF back to GeoDataLineString in the cutting algorithm, and then convert it to a QList<QSharedPointer<LinkedPoint>>. If there is no visible benefit from using that approach, I would stick with this.

The formula to calculate the number of nodes to add can be changed,

MAXIMUM_POINTS_TO_ADD - zoomLevel

is only for demonstration. Suggestions are welcome.

Before (problematic spots marked):

After:

Diff Detail

Repository
R34 Marble
Lint
Lint Skipped
Unit
Unit Tests Skipped
dkolozsvari updated this revision to Diff 5853.Aug 12 2016, 8:50 AM
dkolozsvari retitled this revision from to Adding more points to the edges of the tiles.
dkolozsvari updated this object.
dkolozsvari edited the test plan for this revision. (Show Details)
dkolozsvari added reviewers: nienhueser, rahn.
dkolozsvari set the repository for this revision to R34 Marble.
dkolozsvari added a project: Marble.
dkolozsvari added a subscriber: Marble.
nienhueser accepted this revision.Oct 22 2016, 7:56 AM
nienhueser edited edge metadata.

Pushed already some time ago.

This revision is now accepted and ready to land.Oct 22 2016, 7:56 AM
nienhueser closed this revision.Oct 22 2016, 7:56 AM

Pushed already some time ago.