</xsl:when>\r
<xsl:otherwise>\r
SELECT 'Other <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="$geom1type" />, <xsl:value-of select="@GeometryType" />';\r
- BEGIN; <!-- If output is geography show wkt rep -->\r
+ BEGIN; \r
SELECT <xsl:value-of select="$fnname" />(<xsl:value-of select="$fnfakeparams" />)\r
</xsl:otherwise>\r
</xsl:choose>\r
</xsl:for-each>\r
</xsl:template>\r
\r
- <!--macro to replace func args with dummy var args -->\r
<!--macro to replace func args with dummy var args -->\r
<xsl:template name="replaceparams">\r
<xsl:param name="func" />\r
<xsl:when test="(contains(type,'box') or type = 'geometry' or type = 'geometry ' or contains(type,'geometry set')) and (position() = 1 or count($func/paramdef/type[contains(text(),'geometry') or contains(text(),'box') or contains(text(), 'WKT') or contains(text(), 'bytea')]) = '1')">\r
<xsl:text>foo1.the_geom</xsl:text>\r
</xsl:when>\r
+ <xsl:when test="(type = 'geography' or type = 'geography ' or contains(type,'geography set')) and (position() = 1 or count($func/paramdef/type[contains(text(),'geography')]) )">\r
+ <xsl:text>geography(foo1.the_geom)</xsl:text>\r
+ </xsl:when>\r
<xsl:when test="contains(type,'box') or type = 'geometry' or type = 'geometry '">\r
<xsl:text>foo2.the_geom</xsl:text>\r
</xsl:when>\r
+ <xsl:when test="type = 'geography' or type = 'geography '">\r
+ <xsl:text>geography(foo2.the_geom)</xsl:text>\r
+ </xsl:when>\r
<xsl:when test="contains(type, 'geometry[]') and count($func/paramdef/type[contains(text(),'geometry') or contains(text(),'box') or contains(text(), 'WKT') or contains(text(), 'bytea')]) = '1'">\r
ARRAY[foo1.the_geom]\r
</xsl:when>\r