Fix pbf discovery
This commit is contained in:
@@ -214,7 +214,7 @@ generate_region() {
|
|||||||
mkdir -p "./data/osm/$(system_path "${PATH_ARG%//*}")"
|
mkdir -p "./data/osm/$(system_path "${PATH_ARG%//*}")"
|
||||||
wget "$(
|
wget "$(
|
||||||
curl -s https://download.geofabrik.de/index-v1-nogeom.json |
|
curl -s https://download.geofabrik.de/index-v1-nogeom.json |
|
||||||
jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$PATH_ARG")" '
|
jq -r --arg pid "${PATH_ARG##*//}" --arg parent "$(awk -F/ '{print $(NF-1)}' <<< "$(system_path "${PATH_ARG}")")" '
|
||||||
.. | objects
|
.. | objects
|
||||||
| select(.id? == $pid and .parent? == $parent)
|
| select(.id? == $pid and .parent? == $parent)
|
||||||
| .urls.pbf
|
| .urls.pbf
|
||||||
|
|||||||
Reference in New Issue
Block a user