... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Patch für automatische Wegpunktreduzierung
#10
mrg21 Wrote:Hinter dem gpsbabel Parameter "-x simplify,error=2m" steckt angeblich auch der Douglas Peucker Algorithmus und bei diesem wird der threshold als Entfernung angegeben (error=2m).
Quick-and-Dirty Vorschlag: Routen kleiner 700 Trackpunkte nicht glätten.

Der threshold ist bei RouteConverter abhängig vom ZoomLevel. Dies ist die Tabelle mit Threshold in Metern / 2500 pro Zoomlevel. Größter Zoomlevel zuerst.

private static final int[] ZOOMLEVEL_SCALE = {
400000000,
200000000,
100000000,
50000000,
25000000,
12500000,
6400000,
3200000,
1600000,
800000,
400000,
200000,
100000,
50000,
25000,
12500,
6400,
3200
};
--
Christian
Reply


Messages In This Thread
RE: Patch für automatische Wegpunktreduzierung - by routeconverter - 09.11.2008, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)