From: Regina Obe Date: Thu, 5 Dec 2013 12:45:35 +0000 (+0000) Subject: #2554: Fix name of postgis.gdal_path (wrong in docs). Give an example of new ST_MapA... X-Git-Tag: 2.2.0rc1~1288 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd74f6369ac95d51607c01ebcdf39cf4a5c56ff4;p=postgis #2554: Fix name of postgis.gdal_path (wrong in docs). Give an example of new ST_MapAlgebra syntax for neighborhood callback for ST_Mean4ma. git-svn-id: http://svn.osgeo.org/postgis/trunk@12150 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_guc.xml b/doc/reference_guc.xml index 5e33273a7..b75d1ec63 100644 --- a/doc/reference_guc.xml +++ b/doc/reference_guc.xml @@ -58,16 +58,16 @@ Examples - Set and reset postgis.gdal.datapath + Set and reset postgis.gdal_datapath -SET postgis.gdal.datapath TO '/usr/local/share/gdal.hidden'; -SET postgis.gdal.datapath TO default; +SET postgis.gdal_datapath TO '/usr/local/share/gdal.hidden'; +SET postgis.gdal_datapath TO default; Setting on windows for a particular database ALTER DATABASE gisdb -SET postgis.gdal.datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data'; +SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data'; diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 3dc45ca38..e97ff2773 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -10801,7 +10801,7 @@ WHERE rid = 2; - Examples + Examples: Variant 1 SELECT rid, @@ -10817,6 +10817,23 @@ WHERE rid = 2; + + + Examples: Variant 2 + + SELECT + rid, + st_value( + ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1) + , 2, 2) + FROM dummy_rast + WHERE rid = 2; + rid | st_value +-----+------------------ + 2 | 253.222229003906 +(1 row) + + See Also