Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import custom PBF file #8

Open
zubair1024 opened this issue Apr 13, 2022 · 1 comment
Open

Import custom PBF file #8

zubair1024 opened this issue Apr 13, 2022 · 1 comment

Comments

@zubair1024
Copy link

Hi, is there a possibility to import a custom PBF file instead of using online mirrors?

@kwikma
Copy link

kwikma commented Jun 2, 2022

I'm fairly certain if you wanted to do it properly you would have to modify renderd-docker etc...

A fairly quick workaround (without updates tho) is just launching a local fileserver with your custom PBF. For example:
http-server -p 12345

Then you need to add localhost access to your renderd- and Postgres-Containers:

extra_hosts:
      - "host.docker.internal:host-gateway"

You also need to calculate a new md5-Checksum: md5sum custom.osm.pbf > custom.osm.pbf.md5

Then you can just access your local file like this and leave update empty (its necessary to have it in an additional folder like /mapfiles here)

OSM_PBF_URL=host.docker.internal:12345/mapfiles/custom.osm.pbf
OSM_PBF_UPDATE_URL=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants