Skip to content

Commit f09e52f

Browse files
committed
Add georeferenceSources
1 parent 5a836bd commit f09e52f

File tree

6 files changed

+5842
-5836
lines changed

6 files changed

+5842
-5836
lines changed

R/create_gps_occurrence.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ create_gps_occurrence <- function(gps, ref, taxa) {
104104
geodeticDatum = "EPSG:4326",
105105
coordinateUncertaintyInMeters =
106106
as.numeric(.data$`location-error-numerical`),
107+
georeferenceSources =
108+
dplyr::if_else(.data$`sensor-type` == "gps", "GPS", NA_character_),
107109
# IDENTIFICATION
108110
identificationVerificationStatus = "verified by expert",
109111
# TAXON

R/create_ref_occurrence.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ create_ref_occurrence <- function(ref, taxa) {
9696
187,
9797
NA_real_
9898
),
99+
georeferenceSources = NA_character_,
99100
# IDENTIFICATION
100101
identificationVerificationStatus = "verified by expert",
101102
# TAXON

inst/extdata/meta.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
<field index="26" term="http://rs.tdwg.org/dwc/terms/decimalLongitude"/>
3434
<field index="27" term="http://rs.tdwg.org/dwc/terms/geodeticDatum"/>
3535
<field index="28" term="http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"/>
36-
<field index="29" term="http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"/>
37-
<field index="30" term="http://rs.tdwg.org/dwc/terms/scientificNameID"/>
38-
<field index="31" term="http://rs.tdwg.org/dwc/terms/scientificName"/>
39-
<field index="32" term="http://rs.tdwg.org/dwc/terms/kingdom"/>
36+
<field index="29" term="http://rs.tdwg.org/dwc/terms/georeferenceSources"/>
37+
<field index="30" term="http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"/>
38+
<field index="31" term="http://rs.tdwg.org/dwc/terms/scientificNameID"/>
39+
<field index="32" term="http://rs.tdwg.org/dwc/terms/scientificName"/>
40+
<field index="33" term="http://rs.tdwg.org/dwc/terms/kingdom"/>
4041
</core>
4142
<extension encoding="UTF-8" fieldsTerminatedBy="," linesTerminatedBy="\n" fieldsEnclosedBy="&quot;" ignoreHeaderLines="1" rowType="http://rs.iobis.org/obis/terms/ExtendedMeasurementOrFact">
4243
<files>

tests/testthat/_snaps/write_dwc/meta.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
<field index="26" term="http://rs.tdwg.org/dwc/terms/decimalLongitude"/>
3434
<field index="27" term="http://rs.tdwg.org/dwc/terms/geodeticDatum"/>
3535
<field index="28" term="http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters"/>
36-
<field index="29" term="http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"/>
37-
<field index="30" term="http://rs.tdwg.org/dwc/terms/scientificNameID"/>
38-
<field index="31" term="http://rs.tdwg.org/dwc/terms/scientificName"/>
39-
<field index="32" term="http://rs.tdwg.org/dwc/terms/kingdom"/>
36+
<field index="29" term="http://rs.tdwg.org/dwc/terms/georeferenceSources"/>
37+
<field index="30" term="http://rs.tdwg.org/dwc/terms/identificationVerificationStatus"/>
38+
<field index="31" term="http://rs.tdwg.org/dwc/terms/scientificNameID"/>
39+
<field index="32" term="http://rs.tdwg.org/dwc/terms/scientificName"/>
40+
<field index="33" term="http://rs.tdwg.org/dwc/terms/kingdom"/>
4041
</core>
4142
<extension encoding="UTF-8" fieldsTerminatedBy="," linesTerminatedBy="\n" fieldsEnclosedBy="&quot;" ignoreHeaderLines="1" rowType="http://rs.iobis.org/obis/terms/ExtendedMeasurementOrFact">
4243
<files>

0 commit comments

Comments
 (0)