Instructions to make contour maps

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? It took me a long time to find a server where I could download .hgt files and then I played with various combinations of options -- contours --dem-type=SRTM dem-path=dir_with_(compressed)_hgt_file(s) but I kept getting garbage I would really appreciate it. Thanks, Cliff

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

Ralf Kleineisel wrote:
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
Unless you already have data for Srtm2Osm then this approach will not work as NASA has moved the data and Srtm2Osm is no longer being updated. Groundtruth (the successor to Srtm2Osm) is able to do a similar thing although I have yet to successfully get contours for the UK but that's likely to be a local issue Cheers Paul

Paul <news@pointdee.co.uk> writes:
Ralf Kleineisel wrote:
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
Unless you already have data for Srtm2Osm then this approach will not work as NASA has moved the data and Srtm2Osm is no longer being updated.
I was able to make it work with this release: <http://topo.geofabrik.de/Srtm2Osm-1.7.10.0.zip>. The source code in SVN appears to contain some fixes to change the URL as well.
Groundtruth (the successor to Srtm2Osm)
I'll try it next. :-) /Simon

Hi! Paul schrieb:
Unless you already have data for Srtm2Osm then this approach will not work as NASA has moved the data and Srtm2Osm is no longer being updated.
This is no longer true. Bomm has taken over and updated srtm2osm, it is working again and I am currently even testing some improvements.
Groundtruth (the successor to Srtm2Osm) is able to do a similar thing although I have yet to successfully get contours for the UK but that's likely to be a local issue
I was unsuccessful with groundtruth, too. It works well, but it can't just give me countours for some bounds I requested, it always changes the bounds to its liking so that the data would need to be re-cut to the required area. bye Nop

Nop wrote:
Hi!
Paul schrieb:
Unless you already have data for Srtm2Osm then this approach will not work as NASA has moved the data and Srtm2Osm is no longer being updated.
This is no longer true. Bomm has taken over and updated srtm2osm, it is working again and I am currently even testing some improvements.
Groundtruth (the successor to Srtm2Osm) is able to do a similar thing although I have yet to successfully get contours for the UK but that's likely to be a local issue
I was unsuccessful with groundtruth, too. It works well, but it can't just give me countours for some bounds I requested, it always changes the bounds to its liking so that the data would need to be re-cut to the required area.
bye Nop
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Why don't you directly compile with mkgmap? Wouldn't it be better to provide a tutorial here for contourline generation using mkgmap directly?

Hi Felix Hartmann schrieb:
Why don't you directly compile with mkgmap?
Several reasons: - it is much faster to store the contours in a file locally than calculate them every time - mkgmap does not download the files automatically, strm2osm does - mkgmap is not capable of doing large areas over multiple DEM tiles - the mkgmap code seems to be not quite stable yet bye Nop
participants (6)
-
Felix Hartmann
-
Nolan Clifford
-
Nop
-
Paul
-
Ralf Kleineisel
-
Simon Josefsson