An open API service indexing awesome lists of open source software.

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

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