]> granicus.if.org Git - postgis/commitdiff
more typos fixed, add constructor section
authorRegina Obe <lr@pcorp.us>
Mon, 5 Apr 2010 05:25:02 +0000 (05:25 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 5 Apr 2010 05:25:02 +0000 (05:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5488 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_wktraster.xml

index 06b844c1c694b931f76dbcded6755334b9d3bbea..0eec874da42b6ff34e723d22c6857f7abc068c58 100644 (file)
@@ -45,7 +45,52 @@ VALUES (1,
 '41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' ||
 'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::raster);
   </programlisting>
-  
+       <sect id="Raster_Constructors">
+               <title>Raster Constructors</title>
+               <refentry id="RT_ST_MakeEmptyRaster">
+                       <refnamediv>
+                               <refname>ST_MakeEmptyRaster</refname>
+                               <refpurpose>Returns an empty raster of given dimensions, pixel x y, skew and spatial reference system with no bands</refpurpose>
+                       </refnamediv>
+                       <refsynopsisdiv>
+                               <funcsynopsis>
+                                 <funcprototype>
+                                       <funcdef>raster <function>ST_MakeEmptyRaster</function></funcdef>
+                                       <paramdef><type>integer </type> <parameter>width</parameter></paramdef>
+                                       <paramdef><type>integer </type> <parameter>height</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>ipx</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>ipy</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>scalex</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>scaley</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>skewx</parameter></paramdef>
+                                       <paramdef><type>float8 </type> <parameter>skewy</parameter></paramdef>
+                                       <paramdef><type>integer </type> <parameter>srid</parameter></paramdef>
+                                 </funcprototype>
+                               </funcsynopsis>
+                       </refsynopsisdiv>
+               
+                       <refsection>
+                               <title>Description</title>
+                               
+                               <para>Returns the value that represents no data for the band</para>
+                               </refsection>
+                               
+                               <refsection>
+                                       <title>Examples</title>
+                               
+                                       <programlisting>
+INSERT INTO dummy_rast(rid,rast)
+VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, 4326) )
+                               </programlisting>
+                       
+                       </refsection>
+
+                       <refsection>
+                               <title>See Also</title>
+                               <para></para>
+                       </refsection>
+               </refentry>
+       </sect>
        <sect1 id="Raster_Accessors">
                <title>Raster Accessors</title>
                <refentry id="RT_ST_BandNoDataValue">
@@ -73,7 +118,14 @@ VALUES (1,
                                <refsection>
                                        <title>Examples</title>
                                
-                                       <programlisting><!-- TODO: Need example -->
+                                       <programlisting>SELECT ST_BandNoDataValue(rast,1) As bnval1, 
+    ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As bnval3
+FROM dummy_rast
+WHERE rid = 2;
+
+ bnval1 | bnval2 | bnval3
+--------+--------+--------
+      0 |      0 |      0
                                </programlisting>
                        
                        </refsection>
@@ -93,7 +145,7 @@ VALUES (1,
                        <refsynopsisdiv>
                                <funcsynopsis>
                                  <funcprototype>
-                                       <funcdef>integer <function>ST_BandNoDataValue</function></funcdef>
+                                       <funcdef>text <function>ST_BandPixelType</function></funcdef>
                                        <paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
                                        <paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef>
                                  </funcprototype>
@@ -165,7 +217,7 @@ skewy
 skewx
 pixelsizey
 upperleftx + pixelsizex*0.5
-upperleftx + pixelsizey*0.5</programlisting></para>
+upperlefty + pixelsizey*0.5</programlisting></para>
                        </refsection>
                                
                        <refsection>