[OSM-dev] Simplifying ways

MERIGHI Marcus mcmer-osm-dev at tor.at
Sat May 5 12:55:22 BST 2012


Hello Paul, 

penorman at mac.com (Paul Norman), 2012.05.05 (Sat) 13:03 (CEST):
> I'm working with a process where I generate a .osm file and need to simplify
> the ways in output on the command line. JOSM's simplify way command isn't an
> option as it requires interaction and it is also fairly slow on large files.
> Using ogr2ogr to simplify the source files is not an option as it could
> cause the different layers to no longer agree with each other.
> I'd rather not re-implement Douglas-Peucker if someone has already done it.

I use osmosis [1,2] with osmosis-simplifyways plugin [3,4]. I have
attached my scripts for instruction, do not "just use" them!
I've tried gpsbabel as well but do not remember the results.
(gpsbabel -i osm -f "${_src}" -x simplify,crosstrack,error=0.001k \
    -o osm,tag="normalized:yes",created_by= -F "${_tgt}")

[1] http://wiki.openstreetmap.org/wiki/Osmosis
[2] http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage
[3] https://github.com/podolsir/osmosis-simplifyways
[4] https://github.com/podolsir/osmosis-simplifyways/downloads

Bye, Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geo-osm-normalize.sh
Type: application/x-sh
Size: 4555 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120505/67b29db6/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: geo-osm-ways-normalize.sh
Type: application/x-sh
Size: 759 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120505/67b29db6/attachment-0001.sh>


More information about the dev mailing list