Changes between Version 5 and Version 6 of WikiStart
- Timestamp:
- Jul 26, 2018 1:57:00 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v5 v6 25 25 '''Filling in the gaps:''' Areas of the world which are entirely ocean have no corresponding SRTM file, but Maperitive will try to download the file anyway. The fix for this was to generate all-zero height files for any lat/long missing from the downloaded data set. The Python script fill_terrain_tiles.py automates this process. The filled-in datasets are on the USB drive in the folders SRTMGL1_full and SRTMGL3_full 26 26 27 '''Linking the SRTM to Maperitive:''' In order for Maperitive to find the SRTM data, it must be placed in the correct folder: {{{X:\Maperitive\Cache\Rasters\SRTM1}}} or {{{X:\Maperitive\Cache\Rasters\SRTM3}}}. On the USB drive, this is performed by creating a softlink to the SRTMGLx_full folder, rather than making another copy of the file. You can use the windows utility [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink mklink] to do this; it can be run from the command prompt.27 '''Linking the SRTM to Maperitive:''' In order for Maperitive to find the SRTM data, it must be placed in the correct folder: {{{X:\Maperitive\Cache\Rasters\SRTM1}}} or {{{X:\Maperitive\Cache\Rasters\SRTM3}}}. On the USB drive, this is performed by creating a softlink to the SRTMGLx_full folder, rather than making another copy of the dataset. You can use the windows utility [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink mklink] to do this; it can be run from the command prompt. 28 28 29 29 To use the data in Maperitive, you must enter the command {{{set-dem-source name=SRTM1}}} or {{{set-dem-source name=SRTM3}}}. … … 36 36 37 37 Black is the default color for shading but it can be set to other colors. 38 39 == Other Utilities 40 41 === GDAL 42 [http://www.gdal.org/ GDAL], the Geospatial Data Abstraction Library, is a set of executables and python scripts which can be used to manipulate geo-referenced data in a lot of different ways. This includes the raw SRTM data as well as images (such as terrain shaded png files). 43 44 When Maperitive saves an image of the map as a PNG (''not'' a web tile), it also generates a .georef text file which contains the coordinate bounds and size of the image. Unfortunately, GDAL uses a similar file in a different coordinate format, called an ESRI world file. Image.png should have a cooresponding worldfile Image.pngw. The python script convert_georef.py can be used to read in a folder of Maperitive .georef files and output ESRI worldfiles. Then GDAL tools can be used to manipulate the images.