pelias / polylines

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

docker_extract.sh support for multiple PBF files #202

Closed missinglink closed 5 years ago

missinglink commented 5 years ago

I just discovered https://github.com/pelias/polylines/issues/201 and Instead of just fixing that as-is I figured, why not support multiple PBF files?

I'm not sure why we decided to only extract the first OSM PBF file found in the directory.

This PR fixes 201, meaning that users who had multiple PBF files listed in their pelias.json would suffer a failed interpolation build and presumably street import too.

With this PR all the streets are imported into both ES and Interpolation.

resolves https://github.com/pelias/polylines/issues/201

missinglink commented 5 years ago

I tested this with 0, 1 and 2 osm files and it worked as expected, I also checked that there were newlines between files.