From: Bborie Park Date: Sun, 13 Apr 2014 03:07:45 +0000 (+0000) Subject: document the GUC postgis.gdal_enabled_drivers X-Git-Tag: 2.2.0rc1~1129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1df22878e636926b3751baec6839c9070af7023e;p=postgis document the GUC postgis.gdal_enabled_drivers git-svn-id: http://svn.osgeo.org/postgis/trunk@12475 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_guc.xml b/doc/reference_guc.xml index e7eeaae85..f42e45d48 100644 --- a/doc/reference_guc.xml +++ b/doc/reference_guc.xml @@ -78,4 +78,84 @@ SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data'; + + + postgis.gdal_enabled_drivers + + A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP. + + + + + Description + + A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP. + + + Enabled GDAL specified drivers can be specified by the driver's short-name or code. Driver short-names or codes can be found at GDAL Raster Formats. Multiple drivers can be specified by putting a space between each driver. + + + + + This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction. + + + + + + There are two special codes available to enable or disable all GDAL drivers: ENABLE_ALL and DISABLE_ALL. The codes are case-sensitive. + + + When postgis.gdal_enabled_drivers is set to DISABLE_ALL, attempts to use out-db rasters, ST_FromGDALRaster(), ST_AsGDALRaster(), ST_AsTIFF(), ST_AsJPEG() and ST_AsPNG() will result in error messages. + + + + + + In the standard PostGIS installation, postgis.gdal_enabled_drivers is set to DISABLE_ALL. + + + + + + Additional information about GDAL_SKIP is available at GDAL's Configuration Options. + + + + Availability: 2.2.0 + + + + + Examples + Set and reset postgis.gdal_enabled_drivers + + +SET postgis.gdal_enabled_drivers TO 'GTiff PNG JPEG'; +SET postgis.gdal_enabled_drivers = default; + + + Enable all GDAL Drivers + +SET postgis.gdal_enabled_drivers = 'ENABLE_ALL'; + + + Disable all GDAL Drivers + +SET postgis.gdal_enabled_drivers = 'DISABLE_ALL'; + + + + + See Also + + , + , + , + , + + + + +