Skip to content

Commit

Permalink
Update iso19139.ca.HNAP.FGP-to-iso19139.ca.HNAP to fix invalid ref sy…
Browse files Browse the repository at this point in the history
…stem code format when importing data from FGP (#322)

* correct format of ref system code

---------

Co-authored-by: SHISH <[email protected]>
  • Loading branch information
2 people authored and josegar74 committed May 6, 2024
1 parent 5ce2fa9 commit 186ac3b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@
</xsl:copy>
</xsl:template>

<!-- FGP fix issue where Reference System Code is a number but should have the format EPSG:NUMBER. Example: EPSG:4326. -->
<xsl:template
match="gmd:referenceSystemIdentifier/gmd:RS_Identifier/gmd:code/gco:CharacterString[string(number(text()))!='NaN' and contains(upper-case(../../gmd:codeSpace/gco:CharacterString/text()), 'EPSG')]"
priority="10">
<xsl:copy>
<xsl:value-of select="concat('EPSG:', text())"/>
</xsl:copy>
</xsl:template>

<!--Add default unclassified as security constraint if missing from metadata xml-->
<xsl:template match="gmd:MD_DataIdentification">
<xsl:copy copy-namespaces="no">
Expand Down

0 comments on commit 186ac3b

Please sign in to comment.