https://github.com/detunized/tile-generator-docker
Docker container to rasterize OSM tiles
https://github.com/detunized/tile-generator-docker
container docker openstreetmap rasterization tiles
Last synced: 3 months ago
JSON representation
Docker container to rasterize OSM tiles
- Host: GitHub
- URL: https://github.com/detunized/tile-generator-docker
- Owner: detunized
- License: mit
- Created: 2019-06-25T06:27:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T10:27:03.000Z (almost 7 years ago)
- Last Synced: 2025-03-24T12:18:07.793Z (over 1 year ago)
- Topics: container, docker, openstreetmap, rasterization, tiles
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OSM Tile Generator
==================
This is a Docker config to run the OSM raster tile generator in a container.
To run simply build the image and run like this:
```bash
docker build -t tilegen .
docker run --rm -v $(pwd):/data tilegen -- "12.26,51.849,14.699,52.994"
```
or simply from Docker Hub:
```bash
docker run --rm -v $(pwd):/data detunized/tilegen -- "12.26,51.849,14.699,52.994"
```
The last parameter is a bounding box in a CSV "west, south, east, north"
format. It's easy to make here by selecting an area on the map on
[OpenMapTiles][omp].
The tiles will be saved to the `./png` folder. If something goes wrong,
there's also a log from the [TileServer GL][tsgl].
There should one `*.mbtiles` file available in the current directory. It's
gonna be used by the tile server as a source of verctor tiles.
TODO
====
- [ ] Expose generated tile viewer from the container (see [this][html])
- [x] Publish the container to Docker Hub (publishes automatically)
Credit
======
This repo is merely a repackaging of the existing awesome tools:
- [TileServer GL][tsgl] that does all the dirty work of generating tiles
- [tile-generation][tg] toolkit that scrapes the tiles from the the server
License
=======
MIT, see [LICENSE][lic]
[omp]: https://openmaptiles.com/extracts/#bounds=12.26,51.849,14.699,52.994
[tsgl]: https://github.com/klokantech/tileserver-gl
[tg]: https://github.com/CMU-CREATE-Lab/tile-generation
[html]: https://github.com/CMU-CREATE-Lab/tile-generation/blob/master/tile-fetcher/tile-viewer.html
[lic]: LICENSE