Commit 171e48a4 authored by Regina Obe's avatar Regina Obe

Get rid of 2 geom relation section. Its redundant now that the last condition...

Get rid of 2 geom relation section.  Its redundant now that the last condition section has been improved.

git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent ffbe77f8
......@@ -147,33 +147,6 @@ SELECT 'Ending <xsl:value-of select="funcdef/function" />(<xsl:value-of select=
</xsl:for-each>
</xsl:when>
<!--Garden Relationship and 2 geom input function tests -->
<xsl:when test="(count(paramdef/parameter) = 2 and (paramdef[1]/type = 'geometry' or paramdef[1]/type = 'geometry ') and (paramdef[2]/type = 'geometry' or paramdef[2]/type = 'geometry '))">
<xsl:variable name='fnname'><xsl:value-of select="funcdef/function"/></xsl:variable>
<xsl:variable name='fndef'><xsl:value-of select="funcdef"/></xsl:variable>
<xsl:for-each select="document('')//pgis:gardens/pgis:gset">
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />: Start Testing Multi/<xsl:value-of select="@GeometryType" />';
BEGIN; <!-- If output is geometry show ewkt rep -->
<xsl:choose>
<xsl:when test="contains($fndef, 'geometry ')">
SELECT ST_AsEWKT(<xsl:value-of select="$fnname" />(foo1.the_geom, foo2.the_geom)),
ST_AsEWKT(<xsl:value-of select="$fnname" />(ST_Multi(foo1.the_geom), ST_Multi(foo2.the_geom)))
</xsl:when>
<xsl:otherwise>
SELECT <xsl:value-of select="$fnname" />(foo1.the_geom, foo2.the_geom),
<xsl:value-of select="$fnname" />(ST_Multi(foo1.the_geom), ST_Multi(foo2.the_geom))
</xsl:otherwise>
</xsl:choose>
FROM (<xsl:value-of select="." />) As foo1 CROSS JOIN (<xsl:value-of select="." />) As foo2
LIMIT 5;
COMMIT;
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text> <xsl:value-of select="@ID" />: End Testing Multi/<xsl:value-of select="@GeometryType" />';
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:when>
<!--Functions more than 1 args not already covered -->
<xsl:when test="not(contains($fnexclude,funcdef/function))">
<xsl:variable name='fnname'><xsl:value-of select="funcdef/function"/></xsl:variable>
......
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