Changes between Version 8 and Version 9 of WikiStart
- Timestamp:
- Jul 26, 2018 6:48:59 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v8 v9 23 23 Once the entire world data is downloaded, a few things need to be set to use it properly in Maperitive. Copies of the STRMGL1 and GL3 datasets are on the USB drive in the folders STRMGL1 and SRTMGL3 24 24 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.pyautomates this process. The filled-in datasets are on the USB drive in the folders SRTMGL1_full and SRTMGL3_full25 '''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 [PythonScripts 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 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. … … 46 46 === osmfilter and osmconvert 47 47 48 [https://wiki.openstreetmap.org/wiki/Osmfilter Osmfilter] 49 [https://wiki.openstreetmap.org/wiki/Osmconvert Osmconvert] 48 [https://wiki.openstreetmap.org/wiki/Osmfilter Osmfilter] can be used to filter specific features out of an existing map. For example, you can use this command to create a map that contains only borders, major roads, major waterways, railways, airports, and place names of larger cities and towns. Osmfilter works fastest (but not fast) with .o5m inputs, which you can create with Osmconvert. 49 50 {{{osmfilter d:\north-america.o5m --keep="highway=motorway =trunk =primary =secondary =tertiary =motorway_link =trunk_link =primary_link railway=rail =station boundary= natural= waterway=river =canal aeroway=taxiway =runway =aerodrome place=locality =village =hamlet liesure=park" > d:\na-filter.osm}}} 51 52 [https://wiki.openstreetmap.org/wiki/Osmconvert Osmconvert] converts between common map file formats (ex: osm, o5m, pbf). It can also be used to trim maps down using a lat/lon bounding box or a specific shape in the map. For example, you can use Osmconvert to create a map of the state of Virginia from a map of North America. 50 53 51 54 === Osmium 52 55 53 [https://osmcode.org/osmium-tool/] 56 [https://osmcode.org/osmium-tool/] is a linux-based tool which provides many of the same features as Osmfilter and Osmconvert. 54 57 55 58 === Osmosis 56 59 57 [https://wiki.openstreetmap.org/wiki/Osmosis] 60 [https://wiki.openstreetmap.org/wiki/Osmosis] can be used to trim maps down by lat/lon bounds, but can also be used to load data into and otherwise manipulate map databases.