2.1 KiB
Elevation Data
To add elevation data and contour lines to your maps, you'll need the below information.
Credits
The information here and integration(s) in the main process_maps.py
script were adapted from:
Prep
- You'll need a theme from : https://www.openandromaps.org/en/legend/elevate-mountain-hike-theme
- You'll need tag mappings : https://www.openandromaps.org/en/map-basics-2/tag-mapping
- You'll probably want tag transformations : https://www.openandromaps.org/en/map-basics-2/tagtransform
- AU data : https://ecat.ga.gov.au/geonetwork/srv/eng/search#!a05f7892-ecbd-7506-e044-00144fdd4fa6
Processing
- Download various elevation data needed using phyghtmap (http://katze.tfiu.de/projects/phyghtmap/phyghtmap.1.html)
- Download maps using
download_maps.py
- Create a custom map list (see
custom.list
for an example) for use - Run map processing with
--no-map-download
,--tag-mapping
and--tag-transform
../../bin/osmosis/bin/osmosis --read-pbf ccentral-america-srtm3_lon-99.83_-44.94lat3.28_28.05_srtm3v3.0.osm.pbf
--tee 3
--bp file=../../cache/costa-rica.poly --write-pbf costa-rica-strm3.osm.pbf
--bp file=../../cache/panama.poly --write-pbf panama-strm3.osm.pbf
--bp file=../../cache/nicaragua.poly --write-pbf nicaragua-strm3.osm.pbf
../../bin/osmosis/bin/osmosis
--read-pbf costa-rica-strm1.osm.pbf
--read-pbf panama-strm1.osm.pbf
--read-pbf nicaragua-strm1.osm.pbf
--write-pbf nicaragua-costa-rica-panama-srtm1.osm.pbf
./bin/osmosis/bin/osmosis
--rb file=cache/ght/midwest-srtm1.osm.pbf
--tag-transform file=openandromaps/tag-transform.xml
--log-progress
--wb file=cache/ght/midwest-srtm1-tt.osm.pbf
omitmetadata=true
./bin/osmosis/bin/osmosis
--rb file=cache/ght/midwest-srtm1-tt.osm.pbf
--log-progress
--mapfile-writer file=cache/ght/midwest-srtm1.map
type=ram threads=1 map-start-zoom=8
tag-conf-file=openandromaps/tag-mapping.min.xml
Australia bounding box : bbox=-46.056650000000005,109.8694,-8.837109,169.1016