[OSM-dev] Tool to filter out duplicate ways?

Joerg Ostertag (OSM Munich/Germany) openstreetmap at ostertag.name
Sun Dec 17 18:37:06 GMT 2006


On Sunday 17 December 2006 14:55, Nick Whitelegg wrote:
> Has anyone written a tool (ideally in C or C++) for filtering out duplicate
> nodes, segments and ways from an .osm file? e.g. it takes in an OSM file
> containing two copies of, say, way 223 and outputs a file containing just
> the one copy.

I started something like this in the two programms:
	svn.openstreetmap.org/utils/sanitize/sanitize.pl
	svn.openstreetmap.org/utils/planet.osm/perl/check_osm.pl

You might be able to take these two as a start for your needs.

-- 
Jörg (Germany, Munich)

http://www.ostertag.name/
TeamSpeak2: ts2.ostertag.name, user: tweety, Channel: "GPS Drive"
irc://irc.oftc.net/#osm
Tel.: +49 89 420950304




More information about the dev mailing list