-<?xml version="1.0" encoding="UTF-8"?>\r
-<sect1 id="PostGIS_GUC">\r
- <sect1info>\r
- <abstract>\r
- <para>This section lists custom PostGIS Grand Unified Custom Variables(GUC). These can be set globally, by database, by session or by transaction. Best set at global or database level.</para>\r
- </abstract>\r
- </sect1info>\r
- <title>PostGIS Grand Unified Custom Variables (GUCs)</title>\r
-\r
- <refentry id="postgis_backend">\r
- <refnamediv>\r
- <refname>postgis.backend</refname>\r
- <refpurpose>The backend to service a function where GEOS and SFCGAL overlap. Options: geos or sfcgal. Defaults to geos.</refpurpose>\r
- </refnamediv>\r
-\r
- <refsection>\r
- <title>Description</title>\r
- <para>This GUC is only relevant if you compiled PostGIS with sfcgal support. By default <varname>geos</varname> backend is used for functions where both GEOS and SFCGAL have the same named function. This variable allows you to override and make sfcgal the backend to service the request.</para>\r
- <para>Availability: 2.1.0</para>\r
- </refsection>\r
- \r
- <refsection>\r
- <title>Examples</title>\r
- <para>Sets backend just for life of connection</para>\r
- <programlisting>set postgis.backend = sfcgal;</programlisting>\r
- \r
- <para>Sets backend for new connections to database</para>\r
- <programlisting>ALTER DATABASE mygisdb SET postgis.backend = sfcgal;</programlisting>\r
- </refsection>\r
- <refsection>\r
- <title>See Also</title>\r
- <para><xref linkend="reference_sfcgal" /></para>\r
- </refsection>\r
- </refentry>\r
- \r
- <refentry id="postgis_gdal_datapath">\r
- <refnamediv>\r
- <refname>postgis.gdal_datapath</refname>\r
- <refpurpose>\r
- A configuration option to assign the value of GDAL's GDAL_DATA option. If not set, the environmentally set GDAL_DATA variable is used.\r
- </refpurpose>\r
- </refnamediv>\r
-\r
- <refsection>\r
- <title>Description</title>\r
- <para>\r
- A PostgreSQL GUC variable for setting the value of GDAL's GDAL_DATA option. The <varname>postgis.gdal_datapath</varname> value should be the complete physical path to GDAL's data files.\r
- </para>\r
- <para>\r
- This configuration option is of most use for Windows platforms where GDAL's data files path is not hard-coded. This option should also be set when GDAL's data files are not located in GDAL's expected path.\r
- </para>\r
-\r
- <note>\r
- <para>\r
- This option can be set in PostgreSQL's configuration file postgresql.conf. It can also be set by connection or transaction.\r
- </para>\r
- </note>\r
- <para>Availability: 2.2.0</para>\r
-\r
- <note>\r
- <para>\r
- Additional information about GDAL_DATA is available at GDAL's <ulink url="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</ulink>.\r
- </para>\r
- </note>\r
-\r
- </refsection>\r
-\r
- <refsection>\r
- <title>Examples</title>\r
- <para>Set and reset <varname>postgis.gdal_datapath</varname></para>\r
-\r
- <programlisting>\r
-SET postgis.gdal_datapath TO '/usr/local/share/gdal.hidden';\r
-SET postgis.gdal_datapath TO default;\r
- </programlisting>\r
- \r
- <para>Setting on windows for a particular database</para>\r
- <programlisting>ALTER DATABASE gisdb\r
-SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data';</programlisting>\r
- </refsection>\r
-\r
- <refsection>\r
- <title>See Also</title>\r
- <para>\r
- <xref linkend="RT_PostGIS_GDAL_Version" />, <xref linkend="RT_ST_Transform" />\r
- </para>\r
- </refsection>\r
- </refentry>\r
-\r
- <refentry id="postgis_gdal_enabled_drivers">\r
- <refnamediv>\r
- <refname>postgis.gdal_enabled_drivers</refname>\r
- <refpurpose>\r
- A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP.\r
- </refpurpose>\r
- </refnamediv>\r
-\r
- <refsection>\r
- <title>Description</title>\r
- <para>\r
- A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.\r
- </para>\r
-\r
- <para>\r
- The initial value of <varname>postgis.gdal_enabled_drivers</varname> may also be set by passing the environment variable <varname>POSTGIS_GDAL_ENABLED_DRIVERS</varname> with the list of enabled drivers to the process starting PostgreSQL.\r
- </para>\r
-\r
- <para>\r
- Enabled GDAL specified drivers can be specified by the driver's short-name or code. Driver short-names or codes can be found at <ulink url='http://www.gdal.org/formats_list.html'>GDAL Raster Formats</ulink>. Multiple drivers can be specified by putting a space between each driver.\r
- </para>\r
-\r
- <note>\r
- <para>\r
- There are three special codes available for <varname>postgis.gdal_enabled_drivers</varname>. The codes are case-sensitive.\r
-\r
- <itemizedlist>\r
- <listitem>\r
- <para><varname>DISABLE_ALL</varname> disables all GDAL drivers. If present, <varname>DISABLE_ALL</varname> overrides all other values in <varname>postgis.gdal_enabled_drivers</varname>.</para>\r
- </listitem>\r
- <listitem>\r
- <para><varname>ENABLE_ALL</varname> enables all GDAL drivers.</para>\r
- </listitem>\r
- <listitem>\r
- <para><varname>VSICURL</varname> enables GDAL's <varname>/vsicurl/</varname> virtual file system.</para>\r
- </listitem>\r
- </itemizedlist>\r
- </para>\r
- <para>\r
- When <varname>postgis.gdal_enabled_drivers</varname> 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.\r
- </para>\r
- </note>\r
-\r
- <note>\r
- <para>\r
- In the standard PostGIS installation, <varname>postgis.gdal_enabled_drivers</varname> is set to DISABLE_ALL.\r
- </para>\r
- </note>\r
-\r
- <note>\r
- <para>\r
- Additional information about GDAL_SKIP is available at GDAL's <ulink url="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</ulink>.\r
- </para>\r
- </note>\r
-\r
- <para>Availability: 2.2.0</para>\r
-\r
- </refsection>\r
-\r
- <refsection>\r
- <title>Examples</title>\r
- <para>Set and reset <varname>postgis.gdal_enabled_drivers</varname></para>\r
-\r
- <programlisting>\r
-SET postgis.gdal_enabled_drivers TO 'GTiff PNG JPEG';\r
-SET postgis.gdal_enabled_drivers = default;\r
- </programlisting>\r
- \r
- <para>Enable all GDAL Drivers</para>\r
- <programlisting>\r
-SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\r
- </programlisting>\r
-\r
- <para>Disable all GDAL Drivers</para>\r
- <programlisting>\r
-SET postgis.gdal_enabled_drivers = 'DISABLE_ALL';\r
- </programlisting>\r
- </refsection>\r
-\r
- <refsection>\r
- <title>See Also</title>\r
- <para>\r
- <xref linkend="RT_ST_FromGDALRaster" />, \r
- <xref linkend="RT_ST_AsGDALRaster" />, \r
- <xref linkend="RT_ST_AsTIFF" />, \r
- <xref linkend="RT_ST_AsPNG" />, \r
- <xref linkend="RT_ST_AsJPEG" />, \r
- <xref linkend="postgis_enable_outdb_rasters" />\r
- </para>\r
- </refsection>\r
- </refentry>\r
-\r
- <refentry id="postgis_enable_outdb_rasters">\r
- <refnamediv>\r
- <refname>postgis.enable_outdb_rasters</refname>\r
- <refpurpose>\r
- A boolean configuration option to enable access to out-db raster bands.\r
- </refpurpose>\r
- </refnamediv>\r
-\r
- <refsection>\r
- <title>Description</title>\r
- <para>\r
- A boolean configuration option to enable access to out-db raster bands. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.\r
- </para>\r
-\r
- <para>\r
- The initial value of <varname>postgis.enable_outdb_rasters</varname> may also be set by passing the environment variable <varname>POSTGIS_ENABLE_OUTDB_RASTERS</varname> with a non-zero value to the process starting PostgreSQL.\r
- </para>\r
-\r
- <note>\r
- <para>\r
- Even if <varname>postgis.enable_outdb_rasters</varname> is True, the GUC <varname>postgis.enable_outdb_rasters</varname> determines the accessible raster formats.\r
- </para>\r
- </note>\r
-\r
- <note>\r
- <para>\r
- In the standard PostGIS installation, <varname>postgis.enable_outdb_rasters</varname> is set to False.\r
- </para>\r
- </note>\r
-\r
- <para>Availability: 2.2.0</para>\r
-\r
- </refsection>\r
-\r
- <refsection>\r
- <title>Examples</title>\r
- <para>Set and reset <varname>postgis.enable_outdb_rasters</varname></para>\r
-\r
- <programlisting>\r
-SET postgis.enable_outdb_rasters TO True;\r
-SET postgis.enable_outdb_rasters = default;\r
-SET postgis.enable_outdb_rasters = True;\r
-SET postgis.enable_outdb_rasters = False;\r
- </programlisting>\r
- </refsection>\r
-\r
- <refsection>\r
- <title>See Also</title>\r
- <para>\r
- <xref linkend="postgis_gdal_enabled_drivers" />\r
- </para>\r
- </refsection>\r
- </refentry>\r
-</sect1>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<sect1 id="PostGIS_GUC">
+ <sect1info>
+ <abstract>
+ <para>This section lists custom PostGIS Grand Unified Custom Variables(GUC). These can be set globally, by database, by session or by transaction. Best set at global or database level.</para>
+ </abstract>
+ </sect1info>
+ <title>PostGIS Grand Unified Custom Variables (GUCs)</title>
+
+ <refentry id="postgis_backend">
+ <refnamediv>
+ <refname>postgis.backend</refname>
+ <refpurpose>The backend to service a function where GEOS and SFCGAL overlap. Options: geos or sfcgal. Defaults to geos.</refpurpose>
+ </refnamediv>
+
+ <refsection>
+ <title>Description</title>
+ <para>This GUC is only relevant if you compiled PostGIS with sfcgal support. By default <varname>geos</varname> backend is used for functions where both GEOS and SFCGAL have the same named function. This variable allows you to override and make sfcgal the backend to service the request.</para>
+ <para>Availability: 2.1.0</para>
+ </refsection>
+
+ <refsection>
+ <title>Examples</title>
+ <para>Sets backend just for life of connection</para>
+ <programlisting>set postgis.backend = sfcgal;</programlisting>
+
+ <para>Sets backend for new connections to database</para>
+ <programlisting>ALTER DATABASE mygisdb SET postgis.backend = sfcgal;</programlisting>
+ </refsection>
+ <refsection>
+ <title>See Also</title>
+ <para><xref linkend="reference_sfcgal" /></para>
+ </refsection>
+ </refentry>
+
+ <refentry id="postgis_gdal_datapath">
+ <refnamediv>
+ <refname>postgis.gdal_datapath</refname>
+ <refpurpose>
+ A configuration option to assign the value of GDAL's GDAL_DATA option. If not set, the environmentally set GDAL_DATA variable is used.
+ </refpurpose>
+ </refnamediv>
+
+ <refsection>
+ <title>Description</title>
+ <para>
+ A PostgreSQL GUC variable for setting the value of GDAL's GDAL_DATA option. The <varname>postgis.gdal_datapath</varname> value should be the complete physical path to GDAL's data files.
+ </para>
+ <para>
+ This configuration option is of most use for Windows platforms where GDAL's data files path is not hard-coded. This option should also be set when GDAL's data files are not located in GDAL's expected path.
+ </para>
+
+ <note>
+ <para>
+ This option can be set in PostgreSQL's configuration file postgresql.conf. It can also be set by connection or transaction.
+ </para>
+ </note>
+ <para>Availability: 2.2.0</para>
+
+ <note>
+ <para>
+ Additional information about GDAL_DATA is available at GDAL's <ulink url="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</ulink>.
+ </para>
+ </note>
+
+ </refsection>
+
+ <refsection>
+ <title>Examples</title>
+ <para>Set and reset <varname>postgis.gdal_datapath</varname></para>
+
+ <programlisting>
+SET postgis.gdal_datapath TO '/usr/local/share/gdal.hidden';
+SET postgis.gdal_datapath TO default;
+ </programlisting>
+
+ <para>Setting on windows for a particular database</para>
+ <programlisting>ALTER DATABASE gisdb
+SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data';</programlisting>
+ </refsection>
+
+ <refsection>
+ <title>See Also</title>
+ <para>
+ <xref linkend="RT_PostGIS_GDAL_Version" />, <xref linkend="RT_ST_Transform" />
+ </para>
+ </refsection>
+ </refentry>
+
+ <refentry id="postgis_gdal_enabled_drivers">
+ <refnamediv>
+ <refname>postgis.gdal_enabled_drivers</refname>
+ <refpurpose>
+ A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP.
+ </refpurpose>
+ </refnamediv>
+
+ <refsection>
+ <title>Description</title>
+ <para>
+ A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.
+ </para>
+
+ <para>
+ The initial value of <varname>postgis.gdal_enabled_drivers</varname> may also be set by passing the environment variable <varname>POSTGIS_GDAL_ENABLED_DRIVERS</varname> with the list of enabled drivers to the process starting PostgreSQL.
+ </para>
+
+ <para>
+ Enabled GDAL specified drivers can be specified by the driver's short-name or code. Driver short-names or codes can be found at <ulink url='http://www.gdal.org/formats_list.html'>GDAL Raster Formats</ulink>. Multiple drivers can be specified by putting a space between each driver.
+ </para>
+
+ <note>
+ <para>
+ There are three special codes available for <varname>postgis.gdal_enabled_drivers</varname>. The codes are case-sensitive.
+
+ <itemizedlist>
+ <listitem>
+ <para><varname>DISABLE_ALL</varname> disables all GDAL drivers. If present, <varname>DISABLE_ALL</varname> overrides all other values in <varname>postgis.gdal_enabled_drivers</varname>.</para>
+ </listitem>
+ <listitem>
+ <para><varname>ENABLE_ALL</varname> enables all GDAL drivers.</para>
+ </listitem>
+ <listitem>
+ <para><varname>VSICURL</varname> enables GDAL's <varname>/vsicurl/</varname> virtual file system.</para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ <para>
+ When <varname>postgis.gdal_enabled_drivers</varname> 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.
+ </para>
+ </note>
+
+ <note>
+ <para>
+ In the standard PostGIS installation, <varname>postgis.gdal_enabled_drivers</varname> is set to DISABLE_ALL.
+ </para>
+ </note>
+
+ <note>
+ <para>
+ Additional information about GDAL_SKIP is available at GDAL's <ulink url="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</ulink>.
+ </para>
+ </note>
+
+ <para>Availability: 2.2.0</para>
+
+ </refsection>
+
+ <refsection>
+ <title>Examples</title>
+ <para>Set and reset <varname>postgis.gdal_enabled_drivers</varname></para>
+
+ <programlisting>
+SET postgis.gdal_enabled_drivers TO 'GTiff PNG JPEG';
+SET postgis.gdal_enabled_drivers = default;
+ </programlisting>
+
+ <para>Enable all GDAL Drivers</para>
+ <programlisting>
+SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';
+ </programlisting>
+
+ <para>Disable all GDAL Drivers</para>
+ <programlisting>
+SET postgis.gdal_enabled_drivers = 'DISABLE_ALL';
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>See Also</title>
+ <para>
+ <xref linkend="RT_ST_FromGDALRaster" />,
+ <xref linkend="RT_ST_AsGDALRaster" />,
+ <xref linkend="RT_ST_AsTIFF" />,
+ <xref linkend="RT_ST_AsPNG" />,
+ <xref linkend="RT_ST_AsJPEG" />,
+ <xref linkend="postgis_enable_outdb_rasters" />
+ </para>
+ </refsection>
+ </refentry>
+
+ <refentry id="postgis_enable_outdb_rasters">
+ <refnamediv>
+ <refname>postgis.enable_outdb_rasters</refname>
+ <refpurpose>
+ A boolean configuration option to enable access to out-db raster bands.
+ </refpurpose>
+ </refnamediv>
+
+ <refsection>
+ <title>Description</title>
+ <para>
+ A boolean configuration option to enable access to out-db raster bands. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.
+ </para>
+
+ <para>
+ The initial value of <varname>postgis.enable_outdb_rasters</varname> may also be set by passing the environment variable <varname>POSTGIS_ENABLE_OUTDB_RASTERS</varname> with a non-zero value to the process starting PostgreSQL.
+ </para>
+
+ <note>
+ <para>
+ Even if <varname>postgis.enable_outdb_rasters</varname> is True, the GUC <varname>postgis.enable_outdb_rasters</varname> determines the accessible raster formats.
+ </para>
+ </note>
+
+ <note>
+ <para>
+ In the standard PostGIS installation, <varname>postgis.enable_outdb_rasters</varname> is set to False.
+ </para>
+ </note>
+
+ <para>Availability: 2.2.0</para>
+
+ </refsection>
+
+ <refsection>
+ <title>Examples</title>
+ <para>Set and reset <varname>postgis.enable_outdb_rasters</varname></para>
+
+ <programlisting>
+SET postgis.enable_outdb_rasters TO True;
+SET postgis.enable_outdb_rasters = default;
+SET postgis.enable_outdb_rasters = True;
+SET postgis.enable_outdb_rasters = False;
+ </programlisting>
+ </refsection>
+
+ <refsection>
+ <title>See Also</title>
+ <para>
+ <xref linkend="postgis_gdal_enabled_drivers" />
+ </para>
+ </refsection>
+ </refentry>
+</sect1>