Overv / openstreetmap-tile-server

Docker file for a minimal effort OpenStreetMap tile server
Apache License 2.0
1.23k stars 485 forks source link

Importing .osm instead of .osm.PBF map file? #353

Open DMO4KTC opened 1 year ago

DMO4KTC commented 1 year ago

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 my region.osm file, when placed in ./data directory (instead of region.osm.pbf)

Actual behavior

The actual behavior of the import command is:

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?

Thank you