Compare commits

..

No commits in common. "c484979e135b4299d8fd9e0fcf56ab529b0f6db9" and "3a03ae13fe09d9c2ae93d5dc7e7adaca80e6362c" have entirely different histories.

2 changed files with 4 additions and 13 deletions

View file

@ -41,8 +41,7 @@ The input data for `strecken.pmtiles` consists of a `data/` folder,
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
by [ogrmerge](https://gdal.org/programs/ogrmerge.html), for instance,
GeoJSON or gpx. The input data can be obtained from OpenStreetMap
using tools such as [brouter][brouter] or [osmexp][osmexp].
GeoJSON or gpx.
#### layers.json
@ -97,7 +96,3 @@ jq 'del( .features[] .properties )'
```
on the input file with excessive metadata.
[brouter]: https://brouter.de/brouter-web/
[osmexp]: https://github.com/homologic/osmexp

View file

@ -4,15 +4,11 @@ import re
import requests
import json
import os
import argparse
import sys
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")
args = parser.parse_args()
url = args.URL
outdir = args.output_dir
url = sys.argv[1]
outdir = sys.argv[2]
base = url.split("/map/")[0]
r = requests.get(url)