I am trying to dynamically download and import a map area from the OSM API:
wget -O region.osm "https://api.openstreetmap.org/api/0.6/map?bbox=11.54,48.14,11.543,48.145"
Which returns an region.osm file, which I place inside the ./data/ directory.
Expected behavior
I was hoping that the import command would detect and import my region.osm file, when placed in ./data directory (instead of region.osm.pbf)
Actual behavior
The actual behavior of the import command is:
it doesn't detect the .osm mapfile and starts downloading the luxembourg-latest.osm.pbf map files from download.geofabrik.de, instead of using my own region.osm file.
How to reproduce
Here's the Dockerfile I'm trying to create:
FROM overv/openstreetmap-tile-server:2.2.0
RUN wget -O data/region.osm "https://api.openstreetmap.org/api/0.6/map?bbox=11.54,48.14,11.543,48.145"
ENTRYPOINT []
CMD ./run.sh import
The Question is...
Do I really need to convert it from .osm to .osm.pbf, or is there maybe an alternative way to get the import working with .osm files?
Hello,
I am trying to dynamically download and import a map area from the OSM API:
wget -O region.osm "https://api.openstreetmap.org/api/0.6/map?bbox=11.54,48.14,11.543,48.145"
Which returns an
region.osm
file, which I place inside the./data/
directory.Expected behavior
I was hoping that the
import
command would detect and import myregion.osm
file, when placed in./data
directory (instead ofregion.osm.pbf
)Actual behavior
The actual behavior of the
import
command is:.osm
mapfile and starts downloading theluxembourg-latest.osm.pbf
map files fromdownload.geofabrik.de
, instead of using my ownregion.osm
file.How to reproduce
Here's the Dockerfile I'm trying to create:
The Question is...
Do I really need to convert it from .osm to .osm.pbf, or is there maybe an alternative way to get the
import
working with .osm files?Thank you