[OSM-talk] JOSM "simplify way" option

Christoph Eckert ce at christeck.de
Sun May 20 08:59:13 BST 2007


> In this play version, the default for the allowed error is 0.06 in
> whatever units, I think it must be statue miles ;-) (that's what you
> get when you copy code without properly understanding it).

from the gpsbabel docs as found on
http://www.gpsbabel.org/htmldoc-1.3.3/filter_simplify.html

»The value of this option is a distance, specified in miles by default. 
You may also specify the distance in kilometers by adding a 'k' to the 
end of the number.« Thus I guess the code you copied works in miles.

AFAIK you can specify both 'k' and 'm' on the CLI. I use it as
gpsbabel -t -i gpx -f Track.gpx -x simplify,error=0.001k -o gpx -F 
PurgedTrack.gpx
to filter by one metre.

Maybe the unit should default to km on JOSM, or at least be selectable. 
I guess most mappers (except those in GB or the US) are not familiar 
with imperial values.

Anyway, cool feature. I recently saw a secondary with that many nodes, I 
would immediately have used it if it did exist.

Thanks,

ce





More information about the talk mailing list