logo separator

[mkgmap-dev] Error splitting SRTM data

From Michael Prinzing mipri at gmx.net on Mon Sep 19 16:53:03 BST 2011

On Sat, 17 Sep 2011 16:33:02 +0200, Thorsten Kukuk wrote:

Hello,

>Ok, phyghtmap, too, creates only v0.5 data. Haven't done anything
>with python since several years, but to change to should be that
>tricky. Only version and timestamp attributes needs to be added,
>else osmosis is complaining. 

This might not be sufficient to get a valid file. There is a new limit
of 2000 nodes per way in OSM 0.6 (see
http://wiki.openstreetmap.org/wiki/OSM_Protocol_Changes_V0.5_to_V0.6#Changes_to_existing_functionality), 
and srtm2osm for example exceeds this by far. The contour data for 
Germany contains ways with more than 460000 nodes. So in addition to 
adding timestamp and version every way containing more than 2000 nodes 
has to be split into smaller pieces.


The conversion from osm 0.5 to 0.6 also can be done with osmosis 0.35. 

Just call it with

osmosis --read-xml-0.5 enableDateParsing=no file="data_05.osm" --migrate --write-xml file="data_06.osm"

This is adding the missing tags, however it does not split ways containing too many nodes.


Michael






More information about the mkgmap-dev mailing list