]> granicus.if.org Git - postgis/commitdiff
fix errors in documentation and comment scripts preveningt comments install from...
authorRegina Obe <lr@pcorp.us>
Wed, 14 Dec 2011 10:44:58 +0000 (10:44 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 14 Dec 2011 10:44:58 +0000 (10:44 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8403 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml
doc/xsl/raster_comments.sql.xsl

index 3b8ae2b758004ef3a55e26407af02ee803218140..8600dcae64ce4449ab4c63f83aac1770b75b6375 100644 (file)
@@ -249,7 +249,7 @@ VALUES (1,
          <refsynopsisdiv>
                <funcsynopsis>
                  <funcprototype>
-                       <funcdef>boolean <function>AddRasterContraints</function></funcdef>
+                       <funcdef>boolean <function>AddRasterConstraints</function></funcdef>
                        
                        <paramdef><type>name </type>
                        <parameter>rasttable</parameter></paramdef>
@@ -277,10 +277,20 @@ VALUES (1,
                        
                        <paramdef><type>boolean </type>
                        <parameter>regular_blocking</parameter></paramdef>
+                       
+                               <paramdef><type>boolean </type>
+                       <parameter choice='opt'>num_bands=true</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>pixel_types=true</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>nodata_values=true</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>extent=true</parameter></paramdef>
                  </funcprototype>
 
                  <funcprototype>
-                       <funcdef>boolean <function>AddRasterContraints</function></funcdef>
+                       <funcdef>boolean <function>AddRasterConstraints</function></funcdef>
                        <paramdef><type>name </type>
                        <parameter>rastschema</parameter></paramdef>
 
@@ -292,7 +302,7 @@ VALUES (1,
                  </funcprototype>
                  
                  <funcprototype>
-                       <funcdef>boolean <function>AddRasterContraints</function></funcdef>
+                       <funcdef>boolean <function>AddRasterConstraints</function></funcdef>
                        
                        <paramdef><type>name </type>
                        <parameter>rastschema</parameter></paramdef>
@@ -399,42 +409,45 @@ SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, pixel_types,
                <funcsynopsis>
                  <funcprototype>
                        <funcdef>boolean <function>DropRasterConstraints</function></funcdef>
+                       <paramdef><type>name </type>
+                       <parameter>rasttable</parameter></paramdef>
 
-                       <paramdef><type>varchar </type>
-                       <parameter>table_name</parameter></paramdef>
-
-                       <paramdef><type>varchar </type>
-                       <parameter>column_name</parameter></paramdef>
-                 </funcprototype>
-
-                 <funcprototype>
-                       <funcdef>text <function>DropRasterColumn</function></funcdef>
+                       <paramdef><type>name </type>
+                       <parameter>rastcolumn</parameter></paramdef>
 
-                       <paramdef><type>varchar </type>
-                       <parameter>schema_name</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter>srid</parameter></paramdef>
 
-                       <paramdef><type>varchar </type>
-                       <parameter>table_name</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter>scale_x</parameter></paramdef>
 
-                       <paramdef><type>varchar </type>
-                       <parameter>column_name</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter>scale_y</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter>blocksize_x</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter>blocksize_y</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter>same_alignment</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter>regular_blocking</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>num_bands=true</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>pixel_types=true</parameter></paramdef>
+                       
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>nodata_values=true</parameter></paramdef>
+                       <paramdef><type>boolean </type>
+                       <parameter choice='opt'>extent=true</parameter></paramdef>
                  </funcprototype>
 
-                 <funcprototype>
-                       <funcdef>text <function>DropRasterColumn</function></funcdef>
-
-                       <paramdef><type>varchar </type>
-                       <parameter>catalog_name</parameter></paramdef>
-
-                       <paramdef><type>varchar </type>
-                       <parameter>schema_name</parameter></paramdef>
-
-                       <paramdef><type>varchar </type>
-                       <parameter>table_name</parameter></paramdef>
-
-                       <paramdef><type>varchar </type>
-                       <parameter>column_name</parameter></paramdef>
-                 </funcprototype>
+               
                </funcsynopsis>
          </refsynopsisdiv>
 
@@ -6265,8 +6278,9 @@ UPDATE wind
                                  <funcprototype>
                                        <funcdef>geometry <function>ST_Union</function></funcdef>
                                        <paramdef><type>raster set</type> <parameter>rast</parameter></paramdef>
-                                       <paramdef><type>text</type> <parameter>p_expression</parameter></paramdef>
                                        <paramdef><type>integer</type> <parameter>band_num</parameter></paramdef>
+                                       <paramdef><type>text</type> <parameter>p_expression</parameter></paramdef>
+                                       
                                  </funcprototype>
                                </funcsynopsis>
                        </refsynopsisdiv>
index 264833c889731a9a5f5fb49595f029db5a5772df..3e50c63f7045075e314ec0bc26737682719b2e0d 100644 (file)
@@ -35,8 +35,8 @@
        If its input is a geometry set - we know it is an aggregate function rather than a regular function.\r
        Do not output OUT params since they define output rather than act as input and do not put a comma after argument just before an OUT parameter -->\r
                <xsl:for-each select="refsynopsisdiv/funcsynopsis/funcprototype">\r
-COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,'geometry set')">AGGREGATE</xsl:when><xsl:otherwise>FUNCTION</xsl:otherwise></xsl:choose><xsl:text> </xsl:text> <xsl:value-of select="funcdef/function" />(<xsl:for-each select="paramdef"><xsl:choose><xsl:when test="count(parameter) &gt; 0"> \r
-<xsl:choose><xsl:when test="contains(parameter,'OUT')"></xsl:when><xsl:when test="contains(type,'geometry set')">geometry</xsl:when><xsl:otherwise><xsl:value-of select="type" /></xsl:otherwise></xsl:choose><xsl:if test="position()&lt;last() and not(contains(parameter,'OUT')) and not(contains(following-sibling::paramdef[1],'OUT'))"><xsl:text>, </xsl:text></xsl:if></xsl:when>\r
+COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,'geometry set') or contains(paramdef/type,'raster set')">AGGREGATE</xsl:when><xsl:otherwise>FUNCTION</xsl:otherwise></xsl:choose><xsl:text> </xsl:text> <xsl:value-of select="funcdef/function" />(<xsl:for-each select="paramdef"><xsl:choose><xsl:when test="count(parameter) &gt; 0"> \r
+<xsl:choose><xsl:when test="contains(parameter,'OUT')"></xsl:when><xsl:when test="contains(type,'geometry set')">geometry</xsl:when><xsl:when test="contains(type,'raster set')">raster</xsl:when><xsl:otherwise><xsl:value-of select="type" /></xsl:otherwise></xsl:choose><xsl:if test="position()&lt;last() and not(contains(parameter,'OUT')) and not(contains(following-sibling::paramdef[1],'OUT'))"><xsl:text>, </xsl:text></xsl:if></xsl:when>\r
 </xsl:choose></xsl:for-each>) IS '<xsl:call-template name="listparams"><xsl:with-param name="func" select="." /></xsl:call-template> <xsl:value-of select='$comment' />';\r
                        </xsl:for-each>\r
                </xsl:for-each>\r