I have shapefile with lines, some of them are perfectly overlaps - duplicate, although each one have unique id etc.
- When I view the file in QGIS I see they overlap.
- When I convert the file with ogr2osm to osm XML & import to JOSM, and running validation I also get warning of duplicate ways (the lines converted to ways...).
How can I "programmatically" detect and remove such situations? I don't mind doing it in the shapefile or later in the OSM XML.
Note 1 - The attributes (tags) are unique - the actual spatial geometry is duplicate.
Note 2 - I want to use something like ogrinfo, ogr2ogr etc GDAL libraries either as commandline tools or as import library for python/java code. If other code tools exits it's perfect also.