]> granicus.if.org Git - postgis/commitdiff
#2554: Fix name of postgis.gdal_path (wrong in docs). Give an example of new ST_MapA...
authorRegina Obe <lr@pcorp.us>
Thu, 5 Dec 2013 12:45:35 +0000 (12:45 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 5 Dec 2013 12:45:35 +0000 (12:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12150 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_guc.xml
doc/reference_raster.xml

index 5e33273a78d24eedeb2967ada6c37649c51b4d57..b75d1ec638fdbd9cb48dcef4c796f2ddb03b431c 100644 (file)
 \r
                        <refsection>\r
                                <title>Examples</title>\r
-                               <para>Set and reset <varname>postgis.gdal.datapath</varname></para>\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
+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
+SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data';</programlisting>\r
                        </refsection>\r
 \r
                        <refsection>\r
index 3dc45ca380ced4d4645c93a4de1dc0c9a6fadd05..e97ff27734bcbe6b45c31aef61cd892c15b23d46 100644 (file)
@@ -10801,7 +10801,7 @@ WHERE rid = 2;
             </refsection>
                                
                                <refsection>
-                                       <title>Examples</title>
+                                       <title>Examples: Variant 1</title>
                                
                                        <programlisting>SELECT 
     rid,
@@ -10817,6 +10817,23 @@ WHERE rid = 2;
                                </programlisting>
                        
                        </refsection>
+                       
+                       <refsection>
+                                       <title>Examples: Variant 2</title>
+                               
+                                       <programlisting>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)</programlisting>
+                       
+                       </refsection>
                
                        <refsection>
                                <title>See Also</title>