
Hi! Did anyone manage to merge SRTM (srtm2osm output file) with any OSM map using splitter? Splitter complaints that IDs in srtm.osm file are not sorted. osmosis has a bug (exception: 'cannot represent XX as char') and I can't use it to sort srtm.osm file. Is there any way that I can force splitter to merge both files with unsorted ID's? Thanks in advance for any help :) Michal Rogala

Hi Michal, Did you contact the osmosis maintainers? I can try to write a routine that sorts the data, but I don't want to rewrite the osmosis code if not really needed. I guess SRTM data uses negative ids which are sorted, but in the "wrong" direction: -1,-2,-3 instead of 1,2,3 A simple work around would be to use a formula like id = fixed_offset - id; to get the order that is needed in splitter. Gerd Date: Fri, 7 Mar 2014 11:36:12 +0100 From: michal.rogala@gmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: [mkgmap-dev] splitter and srtm2osm Hi! Did anyone manage to merge SRTM (srtm2osm output file) with any OSM map using splitter? Splitter complaints that IDs in srtm.osm file are not sorted. osmosis has a bug (exception: 'cannot represent XX as char') and I can't use it to sort srtm.osm file. Is there any way that I can force splitter to merge both files with unsorted ID's? Thanks in advance for any help :) Michal Rogala _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Michal, I would recommend to use phyhgtmap instead of srtm2osm. You'll get splitted ways (number of nodes can be specified) and it writes pbf-files, which is more effective. Henning

hi! thanks - I'll try phyhgtmap. As far as I know osmosis autors are aware of this problem (someone mentioned this bug over a year ago on osmosis mailing list). Unfortunately latest release was in April 2013 and patch isn't commited yes (or at least I couldn't find any stable or dev version without this bug). best regards Michal Rogala 2014-03-07 16:49 GMT+01:00 Henning Scholland <osm@aighes.de>:
Hi Michal,
I would recommend to use phyhgtmap instead of srtm2osm. You'll get splitted ways (number of nodes can be specified) and it writes pbf-files, which is more effective.
Henning
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Gerd Petermann
-
Henning Scholland
-
Michał Rogala