https://github.com/csprance/gdal2tiles-server
A standalone docker setup to run gdal2tiles.py in a server you can make a post request to generate a tileset and host the tiles it generate
https://github.com/csprance/gdal2tiles-server
Last synced: 4 months ago
JSON representation
A standalone docker setup to run gdal2tiles.py in a server you can make a post request to generate a tileset and host the tiles it generate
- Host: GitHub
- URL: https://github.com/csprance/gdal2tiles-server
- Owner: csprance
- Created: 2024-05-14T04:07:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T13:39:05.000Z (over 1 year ago)
- Last Synced: 2025-02-26T14:18:12.691Z (over 1 year ago)
- Language: Python
- Size: 577 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GDAL2Tiles-Server
> gdal2tiles.py wrapped in a server that also hosts the tiles
## Usage
* Create the volume that holds your processed tilesets `docker volume create gdal_tiles`
* Start The server
* Production: `docker-compose up -d`
* Development: `docker-compose -f docker-compose.dev.yml -f docker-compose.yml up -d`
* Make a post request with your map to http://localhost:8000/upload with the image in the body.
* Take a look at `scripts/http/upload-map.http`
* That image is now available as a tileset at `http://localhost:8000/tiles/image-name/{zoom}/{x}/{y}.png`
## Special Thanks
* I use this gdal2tiles from https://github.com/commenthol/gdal2tiles-leaflet/tree/master
because I'm using leaflet.
* Used the base stuff from the Dockerfile here https://github.com/thinkWhere/GDAL-Docker
* ChatGPT (I love you lol)
## Licenses
* See license in gdal2tiles.py
* probably others
* All other Code MIT License