[Tile-serving] [openstreetmap/mod_tile] getting blank tile while using mod_tile with mapnik to serve geotiff file (Issue #432)

Hummeltech notifications at github.com
Sat May 24 15:18:10 UTC 2025


hummeltech left a comment (openstreetmap/mod_tile#432)

@cagelight , you will need to reproject your GeoTIFF files to `EPSG:3857` because `EPSG:4326` is not a supported projection in `mod_tile`:

https://github.com/openstreetmap/mod_tile/blob/e8ac8f15d3f4d49e312acec4f674cfbb7562a84e/src/gen_tile.cpp#L115-L151

Here's a command to do so (adapted from [here](
https://tilemill-project.github.io/tilemill/docs/guides/reprojecting-geotiff/):
```shell
$ gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -r bilinear -te -20037508.34 -20037508.34 20037508.34 20037508.3 NE2_50M_SR.tif NE2_50M_SR_web.tif
```




-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/432#issuecomment-2906887787
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/mod_tile/issues/432/2906887787 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250524/77bbbc2c/attachment.htm>


More information about the Tile-serving mailing list