Commit 5b9640d7 authored by bourgesl's avatar bourgesl
Browse files

Fixed geoLocationBox (SWNE convention) for AMMA-CATCH

parent e45e8d5f
This diff is collapsed.
......@@ -275,18 +275,37 @@
<xsl:variable name="box" select="gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox"/>
<xsl:if test="$box">
<xsl:call-template name="row">
<xsl:with-param name="key">geoLocationBox</xsl:with-param>
<xsl:with-param name="value">
<xsl:value-of select="$box/gmd:westBoundLongitude/gco:Decimal/text()"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$box/gmd:southBoundLatitude/gco:Decimal/text()"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$box/gmd:eastBoundLongitude/gco:Decimal/text()"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$box/gmd:northBoundLatitude/gco:Decimal/text()"/>
</xsl:with-param>
</xsl:call-template>
<xsl:variable name="west" select="$box/gmd:westBoundLongitude/gco:Decimal/text()"/>
<xsl:variable name="east" select="$box/gmd:eastBoundLongitude/gco:Decimal/text()"/>
<xsl:variable name="north" select="$box/gmd:northBoundLatitude/gco:Decimal/text()"/>
<xsl:variable name="south" select="$box/gmd:southBoundLatitude/gco:Decimal/text()"/>
<xsl:choose>
<xsl:when test="$west = $east and $north = $south">
<xsl:call-template name="row">
<xsl:with-param name="key">geoLocationPoint</xsl:with-param>
<xsl:with-param name="value">
<xsl:value-of select="$north"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$west"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="row">
<xsl:with-param name="key">geoLocationBox</xsl:with-param>
<xsl:with-param name="value">
<xsl:value-of select="$south"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$west"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$north"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$east"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
......
Supports Markdown
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