[OSM-dev] Tool to simplify ways

Pavel Melnikov positron96 at gmail.com
Sun May 5 13:26:33 UTC 2013


Hello Maarten!

Josm's "Simplify area" plugin should do something similar to what you are
seeking, given correct settings.
On May 5, 2013 7:58 PM, "Maarten Deen" <mdeen at xs4all.nl> wrote:

> Hi,
>
> is there a tool already existing that can simplify ways in an .osm file?
>
> What I'm looking for is something that removes all intermediate nodes from
> a way, as long as they are not used in another way.
>
> Example:
> <way id="1">
>         <nd ref="1"/>
>         <nd ref="2"/>
>         <nd ref="3"/>
>         <nd ref="4"/>
>         <nd ref="5"/>
>         <nd ref="6"/>
> </way>
> <way id="2">
>         <nd ref="3"/>
>         <nd ref="7"/>
>         <nd ref="8"/>
>         <nd ref="9"/>
>         <nd ref="10"/>
> </way>
>
> After simplifying:
> <way id="1">
>         <nd ref="1"/>
>         <nd ref="3"/>
>         <nd ref="6"/>
> </way>
> <way id="2">
>         <nd ref="3"/>
>         <nd ref="10"/>
> </way>
>
> And then also remove the unused nodes from the osm files.
>
> Regards,
> Maarten
>
> ______________________________**_________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/dev<http://lists.openstreetmap.org/listinfo/dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20130505/163c3d2d/attachment.html>


More information about the dev mailing list