Commit 50d1015c authored by Regina Obe's avatar Regina Obe

Revise to cross every geometry with every other to better test the functions...

Revise to cross every geometry with every other to better test the functions that take 2 geometries.  This increases the generated script to about 18 MB.  Still need to trim off some of these tests (since it does the same for singular geom functions)

git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent ef374505
......@@ -147,9 +147,14 @@ SELECT 'Ending <xsl:value-of select="funcdef/function" />(<xsl:value-of select=
</xsl:for-each>
</xsl:when>
<!--Functions more than 1 args not already covered -->
<!--Functions more than 1 args not already covered this will cross every geometry type with every other -->
<!-- TODO: put functions that take only one geometry into another section - no need to do a cross for these -->
<xsl:when test="not(contains($fnexclude,funcdef/function))">
<xsl:for-each select="document('')//pgis:gardens/pgis:gset">
<!--Store first garden sql geometry from -->
<xsl:variable name="from1"><xsl:value-of select="." /></xsl:variable>
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />(<xsl:value-of select="$fnargs" />): Start Testing <xsl:value-of select="@GeometryType" /> against other types';
<xsl:for-each select="document('')//pgis:gardens/pgis:gset">
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />(<xsl:value-of select="$fnargs" />): Start Testing <xsl:value-of select="@GeometryType" />';
BEGIN; <!-- If output is geometry show ewkt rep -->
<xsl:choose>
......@@ -160,13 +165,15 @@ SELECT 'Ending <xsl:value-of select="funcdef/function" />(<xsl:value-of select=
SELECT <xsl:value-of select="$fnname" />(<xsl:value-of select="$fnfakeparams" />)
</xsl:otherwise>
</xsl:choose>
FROM (<xsl:value-of select="." />) As foo1 CROSS JOIN (<xsl:value-of select="." />) As foo2
LIMIT 5;
FROM (<xsl:value-of select="$from1" />) As foo1 CROSS JOIN (<xsl:value-of select="." />) As foo2
LIMIT 3;
COMMIT;
SELECT '<xsl:value-of select="$fnname" />(<xsl:value-of select="$fnargs" />) <xsl:text> </xsl:text> <xsl:value-of select="@ID" />: End Testing Multi/<xsl:value-of select="@GeometryType" />';
<xsl:text>
</xsl:text>
</xsl:for-each>
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />(<xsl:value-of select="$fnargs" />): End Testing <xsl:value-of select="@GeometryType" /> against other types';
</xsl:for-each>
</xsl:when>
</xsl:choose>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment