Compare commits
No commits in common. "c484979e135b4299d8fd9e0fcf56ab529b0f6db9" and "3a03ae13fe09d9c2ae93d5dc7e7adaca80e6362c" have entirely different histories.
c484979e13
...
3a03ae13fe
2 changed files with 4 additions and 13 deletions
|
@ -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
|
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. The input data can be obtained from OpenStreetMap
|
GeoJSON or gpx.
|
||||||
using tools such as [brouter][brouter] or [osmexp][osmexp].
|
|
||||||
|
|
||||||
#### layers.json
|
#### layers.json
|
||||||
|
|
||||||
|
@ -97,7 +96,3 @@ 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
|
|
||||||
|
|
|
@ -4,15 +4,11 @@ import re
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import os
|
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 = sys.argv[1]
|
||||||
url = args.URL
|
outdir = sys.argv[2]
|
||||||
outdir = args.output_dir
|
|
||||||
|
|
||||||
base = url.split("/map/")[0]
|
base = url.split("/map/")[0]
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
|
|
Loading…
Reference in a new issue