osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Ability to specify output file in osrm-extract

Open flacombe opened this issue 7 years ago • 4 comments

Hi,

This would be great to add a -o --output parameter in osrm-extract to specify the path of the output file. Typical use case is to divert a single osm/pbf file into several osrm files (with different routing profiles).

It's currently mandatory to create at least symbolic links to my single osm file to make osrm-extract produce different osrm files. May I have miss some existing stuff regarding this ?

All the best

flacombe avatar Mar 02 '18 10:03 flacombe

I was also trying to output different profile at different location using same source file (.osm.pbf). Will this option be available?

lekhnath avatar Jan 25 '20 09:01 lekhnath

@lekhnath Only if you submit a pull-request to implement it.

As @flacombe pointed out, a trivial way to achieve this function is to use symbolic links:

wget http://download.geofabrik.de/antarctica-latest.osm.pbf
ln -s antarctica-latest.osm.pbf antarctica-for-penguins-latest.osm.pbf
osrm-extract -p car.lua antarctica-latest.osm.pbf
osrm-extract -p penguins.lua antarctica-for-penguins-latest.osm.pbf

This would give you antarctica-latest.osrm and antarctica-for-penguins-latest.osrm without needing to copy the .osm.pbf file.

danpat avatar Jan 25 '20 10:01 danpat

Stale.

SiarheiFedartsou avatar Jun 19 '24 20:06 SiarheiFedartsou

Hello @SiarheiFedartsou

You closed this as completed but had anything actually been done yet?

That's right it's stale but it could be a useful improvement anyway.

flacombe avatar Jun 20 '24 07:06 flacombe