Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Infrastructure
iso19139.MERIDIAN
Commits
647ac4ab
Commit
647ac4ab
authored
Aug 30, 2019
by
Kim Mortimer
Browse files
Change geom references to geojson, as per old recovered 2019-04-03 branch
parent
b1b9e8d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/plugin/iso19139.MERIDIAN/index-fields/index.xsl
View file @
647ac4ab
...
...
@@ -611,7 +611,7 @@
<location><xsl:value-of
select=
"concat($s, ',', $w)"
/></location>
</xsl:when>
<xsl:otherwise>
<geo
m
>
<geo
json
>
<xsl:text>
{"type": "polygon",
</xsl:text>
<xsl:text>
"coordinates": [[
</xsl:text>
<xsl:value-of
select=
"concat('[', $w, ',', $s, ']')"
/>
...
...
@@ -624,7 +624,7 @@
<xsl:text>
,
</xsl:text>
<xsl:value-of
select=
"concat('[', $w, ',', $s, ']')"
/>
<xsl:text>
]]}
</xsl:text>
</geo
m
>
</geo
json
>
<location><xsl:value-of
select=
"concat(
(number($s) + number($n)) div 2,
...
...
@@ -644,7 +644,7 @@
<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 -->
<!-- initialize geoJson -->
<geo
m
>
<geo
json
>
<xsl:text>
{"type": "Polygon",
</xsl:text>
<xsl:text>
"coordinates": [
[
</xsl:text>
...
...
@@ -724,16 +724,16 @@
</xsl:otherwise>
</xsl:choose>
<xsl:text>
] }
</xsl:text>
</geo
m
>
</geo
json
>
</xsl:if>
</xsl:for-each>
<xsl:for-each
select=
".//gmd:EX_BoundingPolygon/gmd:polygon/gml:Point"
>
<geo
m
>
<geo
json
>
<xsl:text>
{"type": "Point",
</xsl:text>
<xsl:text>
"coordinates":
</xsl:text>
<xsl:value-of
select=
"concat('[', substring-after(. ,'\s'), ', ', substring-before(., '\s'), ']')"
/>
<xsl:text>
}
</xsl:text>
</geo
m
>
</geo
json
>
</xsl:for-each>
</xsl:for-each>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment