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:[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=
<!--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: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)))
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))
FROM (<xsl:value-of select="." />) As foo1 CROSS JOIN (<xsl:value-of select="." />) As foo2
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text> <xsl:value-of select="@ID" />: End Testing Multi/<xsl:value-of select="@GeometryType" />';
<!--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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment