Compare commits

..

2 commits

2 changed files with 13 additions and 4 deletions

View file

@ -41,7 +41,8 @@ The input data for `strecken.pmtiles` consists of a `data/` folder,
with one subfolder for each layer. In each of these folders, the lines with one subfolder for each layer. In each of these folders, the lines
to be displayed on the map can be deposited in any format understood to be displayed on the map can be deposited in any format understood
by [ogrmerge](https://gdal.org/programs/ogrmerge.html), for instance, by [ogrmerge](https://gdal.org/programs/ogrmerge.html), for instance,
GeoJSON or gpx. GeoJSON or gpx. The input data can be obtained from OpenStreetMap
using tools such as [brouter][brouter] or [osmexp][osmexp].
#### layers.json #### layers.json
@ -96,3 +97,7 @@ jq 'del( .features[] .properties )'
``` ```
on the input file with excessive metadata. on the input file with excessive metadata.
[brouter]: https://brouter.de/brouter-web/
[osmexp]: https://github.com/homologic/osmexp

View file

@ -4,11 +4,15 @@ import re
import requests import requests
import json import json
import os import os
import sys import argparse
parser = argparse.ArgumentParser(description='Export Umap maps for use with streckenkarte')
parser.add_argument("URL", help="The map's URL")
parser.add_argument("output_dir", help="Output directory")
url = sys.argv[1] args = parser.parse_args()
outdir = sys.argv[2] url = args.URL
outdir = args.output_dir
base = url.split("/map/")[0] base = url.split("/map/")[0]
r = requests.get(url) r = requests.get(url)