[mkgmap-dev] Instructions to make contour maps
From Ralf Kleineisel ralf at kleineisel.de on Wed Aug 19 09:08:32 BST 2009
On 08/19/2009 12:56 AM, Nolan Clifford wrote: > I spent a lot of time today trying to figure out the above and did not > succeed. Would anyone be willing to produce a step by step guide on > how to achieve it please? I did it this way: Create OSM file with contours: mono Srtm2Osm.exe -large -cat 100 20 -step 10 -bounds1 10 20 30 40 -o srtm.osm Split it with mkgmap splitter: java -Xmx2048M -jar splitter.jar --mixed=yes --mapid=21000001 --mixed=yes --max-nodes=5000000 srtm.osm Then I made two sets of SRTM IMG files, one with 1 contour every 20 m (20 m, 40 m, 60 m, ...) and one with a contour every odd 10 m (10 m, 30 m, 50 m, ...). 'I used two mkgmap styles for that which contain just a "lines"file with contour entries: The 10 m "lines" file: contour=elevation & contour_ext=elevation_minor { name '${ele|conv:m=>ft}'; } [0x20 resolution 23] The 20 m "lines" file: contour=elevation & contour_ext=elevation_medium { name '${ele|conv:m=>ft}'; } [0x21 resolution 22] contour=elevation & contour_ext=elevation_major { name '${ele|conv:m=>ft}'; } [0x22 resolution 20] I made two copies of the template.args file: template_srtm10.args and template_srtm20.args. I edited these and put meaningful "description" into it. For the SRTM 20 m I edited the template again and changed the input-file sections from 21000XXX to 22000XXX. java -Xmx2048M -jar mkgmap.jar --style-file=mkgmap-style-srtm10new \ --net --gmapsupp --tdbfile --family-id=1234 --product-id=1 \ --draw-priority=28 --transparent \ --series-name=SRTM10 --family-name=SRTM10 --area-name=Foo \ -c template_srtm10.args Renamed the gmapsupp.img srtm10.img. Renamed the 21000XXX OM files into 22000XXX. java -Xmx2048M -jar mkgmap.jar --style-file=mkgmap-style-srtm20new \ --net --gmapsupp --tdbfile --family-id=1235 --product-id=1 \ --draw-priority=28 --transparent \ --series-name=SRTM20 --family-name=SRTM20 --area-name=Foo \ -c template_srtm20.args Renamed the gmapsupp.img srtm20.img. At last I glued the maps together with my OSM IMG and the TYP file with gmaptool: wine gmt.exe -j -o srtm_osm.img osm.img srtm20.img srtm10.img mytypfile.typ
- Previous message: [mkgmap-dev] Instructions to make contour maps
- Next message: [mkgmap-dev] Instructions to make contour maps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list