Hi,<br>I tried to simplify a way I re-imported from a gpx track with 1 point per second<br>I configured simplify-way.max-error to 0.005 to have a way similar to the one I built by hand : ~7000 points to ~1000 points<br><br>
I think it would be better to ask for the threshold in meters, and perhaps ask to modify it each time the function is called with a graphic selector from 1 to 100 (with a tick to 'do not show it next time')<br><br>
DjeFr <br><br><div><span class="gmail_quote">On 5/20/07, <b class="gmail_sendername">Christoph Eckert</b> <<a href="mailto:ce@christeck.de">ce@christeck.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> In this play version, the default for the allowed error is 0.06 in<br>> whatever units, I think it must be statue miles ;-) (that's what you<br>> get when you copy code without properly understanding it).<br>
<br>from the gpsbabel docs as found on<br><a href="http://www.gpsbabel.org/htmldoc-1.3.3/filter_simplify.html">http://www.gpsbabel.org/htmldoc-1.3.3/filter_simplify.html</a><br><br>»The value of this option is a distance, specified in miles by default.
<br>You may also specify the distance in kilometers by adding a 'k' to the<br>end of the number.« Thus I guess the code you copied works in miles.<br><br>AFAIK you can specify both 'k' and 'm' on the CLI. I use it as
<br>gpsbabel -t -i gpx -f Track.gpx -x simplify,error=0.001k -o gpx -F<br>PurgedTrack.gpx<br>to filter by one metre.<br><br>Maybe the unit should default to km on JOSM, or at least be selectable.<br>I guess most mappers (except those in GB or the US) are not familiar
<br>with imperial values.<br><br>Anyway, cool feature. I recently saw a secondary with that many nodes, I<br>would immediately have used it if it did exist.<br><br>Thanks,<br><br>ce<br><br><br>_______________________________________________
<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
</a><br></blockquote></div><br>