Re: [postgis-users] Enabling output GDAL Driver

2022-03-26 Thread Saulteau Don
Maybe see if the correct environment variable also need to be set?


POSTGIS_GDAL_ENABLED_DRIVERS
Specifies a list of GDAL drivers to enable (rather than skip) By default
all drivers are disabled. Example value: “GTiff PNG JPEG”

POSTGIS_ENABLE_OUTDB_RASTERS
Enables read support for out-db raster bands if set to 1. By default out-db
raster bands reading is disabled.

That's taken from the security notes at
https://postgis.net/2014/05/19/postgis-2.0.6_and_2.1.3/



saultdon

On Sat., Mar. 26, 2022, 08:02 David Haynes,  wrote:

> Hello List,
>
> Running into an error running a 3rd party application GeoServer (2.16) to
> visualize rasters stored in PostgreSQL. It seems my PostgreSQL DB has not
> enabled the output GDAL driver.
>
> ERROR: rt_raster_to_gdal: Could not load the output GDAL driver
>
> 2022-03-26 10:32:24,110 ERROR [jdbc.custom] - ERROR: rt_raster_to_gdal:
> Could not load the output GDAL driver
>   Where: PL/pgSQL function st_astiff(raster,text[],integer) line 24 at
> RETURN
> org.postgresql.util.PSQLException: ERROR: rt_raster_to_gdal: Could not
> load the output GDAL driver
>
> Overstack suggested this, but it hasn't worked. Do I have to recompile?
>
> SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';
>
>
> ___
> postgis-users mailing list
> postgis-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users


[postgis-users] Enabling output GDAL Driver

2022-03-26 Thread David Haynes
Hello List,

Running into an error running a 3rd party application GeoServer (2.16) to
visualize rasters stored in PostgreSQL. It seems my PostgreSQL DB has not
enabled the output GDAL driver.

ERROR: rt_raster_to_gdal: Could not load the output GDAL driver

2022-03-26 10:32:24,110 ERROR [jdbc.custom] - ERROR: rt_raster_to_gdal:
Could not load the output GDAL driver
  Where: PL/pgSQL function st_astiff(raster,text[],integer) line 24 at
RETURN
org.postgresql.util.PSQLException: ERROR: rt_raster_to_gdal: Could not load
the output GDAL driver

Overstack suggested this, but it hasn't worked. Do I have to recompile?

SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';
___
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users