[OSM-dev] Segment-free OSM database and API

Nick Whitelegg nick at hogweed.org
Sat Jan 6 14:55:19 GMT 2007

On Saturday 06 Jan 2007 14:40, Ludwig Max Brinckmann wrote:
> For those looking for a quick and dirty fix to the problem, I have hacked
> an XSL file that will convert a OSM.xml file to another OSM.xml file where
> ways with non-contiguous segments are broken up into a way per segment.
> It can be used to pre-process an OSM xml file to remove jumbled ways
> without affecting processing steps that come after as the xml structure
> does not change and all attributes are retained.
> I have used the windows sabcmd XSLT processor for it, e.g.
> sabcmd.exe fixosm.xsl inputosm.xml outputosm.xml
> Other XSLT processors should work similarly.
> I agree that the issue should be fixed in the db itself, but setting up
> another db will create huge maintenance problems in the future: what
> happens if people start committing changes to the both dbs, old and fixed?
> How will you sync the data? A cleaner way would be to set up a 'view' that
> would only show contiguous segments.
> Ludwig

Maybe setting up another database isn't desperately important. The key thing 
is to be able to have .osm files free from unordered ways.


More information about the dev mailing list