Commit 6e4361b7 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Add better detection for srsName

parent 4eaa4aeb
...@@ -641,7 +641,7 @@ ...@@ -641,7 +641,7 @@
</xsl:for-each> </xsl:for-each>
<xsl:for-each select=".//gmd:EX_BoundingPolygon/gmd:polygon/gml:Polygon"> <xsl:for-each select=".//gmd:EX_BoundingPolygon/gmd:polygon/gml:Polygon">
<!-- if it's not in WGS 84 we can't convert to geoJson --> <!-- if it's not in WGS 84 we can't convert to geoJson -->
<xsl:if test="@gml:srsName= 'WGS 84' or @gml:srsName = 'WGS84' or @gml:srsName = '' or not(@gml:srsName)"> <xsl:if test="contains(@srsName, 'WGS 84') or contains(@srsName, 'WGS84') or contains(@srsName, '') or contains(@srsName, '/4326') or not(@gml:srsName)">
<!-- if it's a polygon it has an exterior --> <!-- if it's a polygon it has an exterior -->
<!-- initialize geoJson --> <!-- initialize geoJson -->
<geom> <geom>
......
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