Skip to content

Commit

Permalink
[#12] Added spatial datum.
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst committed Jul 18, 2024
1 parent 4f6bf23 commit b0d4e1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transformations/abcd2bioschemas/abcd2bioschemas-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:variable name="unit_coordinates" select="./abcd:Gathering/abcd:SiteCoordinateSets/abcd:SiteCoordinates/abcd:CoordinatesLatLong"></xsl:variable>
<xsl:variable name="unit_latitude" select="./abcd:Gathering/abcd:SiteCoordinateSets/abcd:SiteCoordinates/abcd:CoordinatesLatLong/abcd:LatitudeDecimal"></xsl:variable>
<xsl:variable name="unit_longitude" select="./abcd:Gathering/abcd:SiteCoordinateSets/abcd:SiteCoordinates/abcd:CoordinatesLatLong/abcd:LongitudeDecimal"></xsl:variable>
<xsl:variable name="unit_spatial_datum" select="./abcd:Gathering/abcd:SiteCoordinateSets/abcd:SiteCoordinates/abcd:CoordinatesLatLong/abcd:SpatialDatum"></xsl:variable>
<xsl:variable name="unit_altitude" select="./abcd:Gathering/abcd:Altitude"></xsl:variable>
<xsl:variable name="unit_country" select="./abcd:Gathering/abcd:Country/abcd:Name"></xsl:variable>
<xsl:variable name="unit_named_areas" select="./abcd:Gathering/abcd:NamedAreas/abcd:NamedArea"></xsl:variable>
Expand All @@ -162,6 +163,9 @@ exclude-result-prefixes="xsl md panxslt set">
<xsl:if test="$unit_longitude">
<longitude xsi:type="xs:double"><xsl:value-of select="$unit_longitude"/></longitude>
</xsl:if>
<xsl:if test="$unit_spatial_datum">
<additionalType><xsl:value-of select="$unit_spatial_datum"/></additionalType>
</xsl:if>
<xsl:if test="$unit_altitude">
<elevation xsi:type="xs:double"><xsl:value-of select="$unit_altitude"/></elevation>
</xsl:if>
Expand Down

0 comments on commit b0d4e1b

Please sign in to comment.