postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.4k stars 467 forks source link

Document which ST_GDALDrivers are available on debian vs alpine based images #384

Open zmbm-dev opened 6 months ago

zmbm-dev commented 6 months ago

Small documentation request. I was trying to export part of a raster using ST_AsPNG and it took me a while to figure out that the PNG GDAL driver isn't available on the alpine image.

SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';
SELECT short_name, long_name, can_write
FROM st_gdaldrivers()
ORDER BY short_name;

showed no PNG driver but google didn't give any hint as to why.

Looking at the gdal documentation, it's built-in by default so I was confused for a bit. Eventually I tried the debian based image which includes the PNG driver, but I thought it'd be nice to have this documented somewhere.

AHB102 commented 4 months ago

@evanderh Can I document this ?

zmbm-dev commented 4 months ago

@AHB102 Go for it!