pelias / polylines

Pelias import pipeline for polyline (road network) data.
MIT License
18 stars 25 forks source link

docker_extract.sh script fails on multiple PBF files #201

Closed missinglink closed 6 years ago

missinglink commented 6 years ago

when running the docker_extract.sh script with multiple OSM PBF files in the directory, an error occurs:

$ pelias prepare polylines
find: ‘/data/openstreetmap/or-wa.osm.pbf\n/data/openstreetmap/portland_oregon.osm.pbf’: No such file or directory

This is due to a typo in the script:

PBF_FILE=$(ls -1 /data/openstreetmap/*.pbf || true | head -n1);

should be...

PBF_FILE=$((ls -1 /data/openstreetmap/*.pbf || true) | head -n1);