]> granicus.if.org Git - postgis/commitdiff
example for st_value
authorRegina Obe <lr@pcorp.us>
Mon, 5 Apr 2010 05:59:46 +0000 (05:59 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 5 Apr 2010 05:59:46 +0000 (05:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5491 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_wktraster.xml

index 209b5fc80d6f8f2a5caf9fb97ea764e713eb2e16..16524709b4e3d6c6f3b48ad637fe19f4e29e2d5c 100644 (file)
@@ -569,7 +569,15 @@ srid
                                <refsection>
                                        <title>Examples</title>
                                
-                                       <programlisting><!-- TODO: Examples needed --> 
+                                       <programlisting>
+SELECt rid, ST_Value(rast, 1,1,1) As b1pval, 
+    ST_Value(rast, 2,1,1) As b2pval, ST_Value(rast, 3,1,1) As b3pval
+FROM dummy_rast
+WHERE rid=2;
+
+ rid | b1pval | b2pval | b3pval
+-----+--------+--------+--------
+   2 |    253 |     78 |     70
                                </programlisting>
                        
                        </refsection>