OSM experts, Thanks for your time. I'm experimenting with building maps from US NHD data and have encountered a problem that only comes up when I split my osm files with splitter. I'm using the latest svn version of it and mkgmap. Here's the short version: (1) Use ogr2osm with a suitable translation file to convert NHDFlowline.shp -> NHDFlowline.osm and NHDWaterbody.shp -> NHDWaterbody.osm (2) Use sed to add dummy database fields so that these osm files are acceptable to osmosis. (3) Use osmosis to delete nodes that aren't used by ways in these files, eg
(4) Run splitter:
(5) Run mkgmap (with loads of options that aren't relevant, experimentation shows). In the case of the subbassin I'm experimenting with, two of the three tiles have large, spurious, angular lakes. I've put a screenshot from from qlandkartegt at link text for the time being. If it helps any, one large angular water area is given the name that belongs to a lake near, but not touching the edge of the tile containing that spurious lake. Another clue, perhaps, is that between the actual lake of that name and the spurious region in the adjoining tile is a lake the straddles the two tiles, but appears in neither. Further possible hints: (1) mkgmap can actually handle this modest amount of data without splitting. Just using mkgmap, I don't get the spurious water area when building a map from the two filtered osm files. (2) I can split either NHDFlowline.filtered.osm or the NHDWaterbody.filtered.osm file using the areas.list file generated when splitting them together, and the mkgmap results are good. Thanks for any pointers! asked 24 Mar '12, 04:40 Utea |