Changes between Version 2 and Version 3 of PythonScripts
- Timestamp:
- Jul 26, 2018 8:50:10 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonScripts
v2 v3 35 35 }}} 36 36 37 }}} 37 38 38 }}}39 39 = [[attachment:fill_terrain_tiles.py]] 40 The NASA SRTM dataset does not include areas of the earth containing no height data (ie: the ocean). However, Maperitive is dumb about what to do if it tries to get SRTM data for an ocean and none exists, and it will fail. This script fills in the SRTM data by generating blank files to fill in the gaps. SRTM files are named for their latitude and longitude (ex: 32N042W.hgt), so the file iterates through all possible images and when a file is missing, creates it. 41 42 This python script can be run on the command line and passed command line options. Run {{python fill_terrain_tiles.py -h}} to see these options. 43 44 This command has already been run on the USB drive, to create the SRTMGL1_full and SRTMGL3_full folders. These folders are linked in the Maperitive cache folder using directory softlinks. 40 45 41 46 = [[attachment:gen_terrain_image_script.py]]