]> granicus.if.org Git - postgis/commitdiff
#300 - minor casing changes to reference. Incorporate logic to comment types. Types...
authorRegina Obe <lr@pcorp.us>
Mon, 23 Nov 2009 18:07:37 +0000 (18:07 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 23 Nov 2009 18:07:37 +0000 (18:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4887 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_type.xml
doc/xsl/postgis_comments.sql.xsl

index fc9bc443c0fecddbc80b0616c68e57d3e3ad3795..92d3a6700be9c1c4a2ee2f76cff7d93ff6aeb231 100644 (file)
@@ -38,7 +38,7 @@
          <refsection>
                <title>Casting Behavor</title>
                <para>This section lists the automatic as well as explicit casts allowed for this data type</para>
-               <informaltable>
+               <informaltable rowsep="1" frame="all">
                        <tgroup cols="2">
                                <tbody>
                                  <row>
@@ -65,7 +65,7 @@
        
        <refentry id="geometry">
                <refnamediv>
-                       <refname>GEOMETRY</refname>
+                       <refname>geometry</refname>
                        <refpurpose>Planar spatial data type.</refpurpose>
                </refnamediv>
                
@@ -82,7 +82,7 @@
 
        <refentry id="geography">
                <refnamediv>
-                       <refname>GEOGRAPHY</refname>
+                       <refname>geography</refname>
                        <refpurpose>Ellipsoidal spatial data type.</refpurpose>
                </refnamediv>
                
index dd49ec3eb4c875b5aa99c82eb67b865acd90bc5b..a44549836b860d1f8437c122adf6b72511a1a1b6 100644 (file)
                                <xsl:with-param name="replacement" select="''"/>\r
                        </xsl:call-template>\r
                </xsl:variable>\r
+               <xsl:choose>\r
+<!-- If this is a postgis type grab the ref entry summary and refname to make type comment -->\r
+<xsl:when test="parent::sect1[@id='PostGIS_Types']">\r
+       COMMENT ON TYPE <xsl:value-of select="refnamediv/refname" /> IS 'postgis type: <xsl:value-of select='$comment' />';\r
+</xsl:when>\r
+               </xsl:choose>\r
 <!-- For each function prototype generate the DDL comment statement\r
        If its input is a geometry set - we know it is an aggregate function rather than a regular function -->\r
                <xsl:for-each select="refsynopsisdiv/funcsynopsis/funcprototype">\r