Compare commits
2 commits
3a03ae13fe
...
c484979e13
Author | SHA1 | Date | |
---|---|---|---|
c484979e13 | |||
2b5cd45f5f |
2 changed files with 13 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue