[postgis-commits] svn - r3396 - trunk/doc/xsl
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Sat Dec 13 17:50:45 PST 2008
Author: robe
Date: 2008-12-13 17:50:44 -0800 (Sat, 13 Dec 2008)
New Revision: 3396
Modified:
trunk/doc/xsl/postgis_gardentest.sql.xsl
Log:
Add create table, add geom, drop column, drop table to batch of tortures
Modified: trunk/doc/xsl/postgis_gardentest.sql.xsl
===================================================================
--- trunk/doc/xsl/postgis_gardentest.sql.xsl 2008-12-13 19:48:01 UTC (rev 3395)
+++ trunk/doc/xsl/postgis_gardentest.sql.xsl 2008-12-14 01:50:44 UTC (rev 3396)
@@ -37,6 +37,28 @@
</pgis:gardens>
<xsl:template match='/chapter'>
+<!--Start Test table creation, insert, drop -->
+ <xsl:for-each select="document('')//pgis:gardens/pgis:gset">
+SELECT 'create,insert,drop Test: Start Testing Multi/<xsl:value-of select="@GeometryType" />';
+BEGIN;
+ CREATE TABLE pgis_garden (gid serial);
+ SELECT AddGeometryColumn('pgis_garden','the_geom',ST_SRID(the_geom),GeometryType(the_geom),ST_CoordDim(the_geom))
+ FROM (<xsl:value-of select="." />) As foo limit 1;
+ SELECT AddGeometryColumn('pgis_garden','the_geom_multi',ST_SRID(the_geom),GeometryType(ST_Multi(the_geom)),ST_CoordDim(the_geom))
+ FROM (<xsl:value-of select="." />) As foo limit 1;
+ INSERT INTO pgis_garden(the_geom, the_geom_multi)
+ SELECT the_geom, ST_Multi(the_geom)
+ FROM (<xsl:value-of select="." />) As foo;
+
+ SELECT DropGeometryColumn ('pgis_garden','the_geom');
+ SELECT DropGeometryTable ('pgis_garden');
+COMMIT;
+SELECT 'create,insert,drop Test: Start Testing Multi/<xsl:value-of select="@GeometryType" />';
+ <xsl:text>
+
+ </xsl:text>
+ </xsl:for-each>
+<!--End Test table creation, insert, drop -->
<xsl:for-each select='sect1/refentry'>
<xsl:sort select="@id"/>
<!-- For each function prototype generate a test sql statement
@@ -47,8 +69,7 @@
COMMIT;
SELECT 'Ending <xsl:value-of select="funcdef/function" />()';
</xsl:if>
-<!--Start Test aggregate and unary functions
- DONE: Make this section less verbose -->
+<!--Start Test aggregate and unary functions -->
<!--Garden Aggregator/Unary function with input gsets test -->
<xsl:if test="contains(paramdef/type,'geometry set') or (count(paramdef/parameter) = 1 and contains(paramdef/type, 'geometry'))">
<xsl:variable name='fnname'><xsl:value-of select="funcdef/function"/></xsl:variable>
More information about the postgis-commits
mailing list