Re: [mkgmap-dev] Error splitting SRTM data

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...), 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

On Mon, Sep 19, Michael Prinzing wrote:
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...), 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.
So why should I install additional an old version os osmosis, if it doesn't do more than what I can do directly by patching phyghtmap? Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
participants (2)
-
Michael Prinzing
-
Thorsten Kukuk