modrana icon indicating copy to clipboard operation
modrana copied to clipboard

Simplify logging trace when drawing at low zoom level

Open M4rtinK opened this issue 8 years ago • 0 comments

We don't really have to draw all logging trace points when we are drawing a trace at low zl - we can basically skip points based on current zoomlevel (the GTK GUI & Tango GPS do that via modulo).

We could also do a check of pixel distance after switching zoom levels and filter based on that but that might be too complicated/overkill.

BTW, the modulo based algorithm can't be used for routes returned from automated routers - as they already contain only the necessary points it would lead to in most cases to very visible information loss. On the other hand logging traces contain points recorded in regular intervals - in this case just using every second/third/etc. point is much less apparent at the resulting polyline.

M4rtinK avatar Jan 19 '17 19:01 M4rtinK