Hi,

have a look at

http://lists.openstreetmap.org/pipermail/dev/2012-May/024947.html
https://github.com/podolsir/osmosis-simplifyways

If you do not have negative IDs in your dataset, the last link should work.


Regards,
Christian


Am 05.05.2013 14:56, schrieb Maarten Deen:
> 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@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>


_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to