Skip to content

detunized/tile-generator-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

docker build -t tilegen .
docker run --rm -v $(pwd):/data tilegen -- "12.26,51.849,14.699,52.994"

or simply from Docker Hub:

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.

The tiles will be saved to the ./png folder. If something goes wrong, there's also a log from the TileServer GL.

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)
  • Publish the container to Docker Hub (publishes automatically)

Credit

This repo is merely a repackaging of the existing awesome tools:

License

MIT, see LICENSE

Releases

No releases published

Packages

No packages published