Skip to content

Commit a89011f

Browse files
authored
Merge pull request #159 from RobLBaker/main
fix set_content_units: E & W GPS coordinates were in backwards!
2 parents dcb3861 + b7d0493 commit a89011f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# EMLeditor v0.1.6
2+
## 2024-09-17
3+
* Update `set_content_units` to have correct east and west GPS coordinates for bounding boxes.
24
## 2024-08-29
35
* Update readme: add R-CMD-CHECK badge; use pak to install instead of devtools
46
* Update licenseName field on restricted references to read, "Unlicensed (not for public dissemination)"

R/editEMLfunctions.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ set_content_units <- function(eml_object, park_units,
216216
poly <- as.data.frame(poly[[1]][1])
217217
N <- max(poly[, 2])
218218
S <- min(poly[, 2])
219-
W <- max(poly[, 1])
220-
E <- min(poly[, 1])
219+
W <- min(poly[, 1])
220+
E <- max(poly[, 1])
221221
geocov <- EML::eml$geographicCoverage(
222222
geographicDescription =
223223
paste0("NPS Content Unit Link: ", park_units[i]),

docs/news/index.html

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ articles:
77
a03_Template_edits: a03_Template_edits.html
88
a04_Editing_fixing_eml: a04_Editing_fixing_eml.html
99
a05_advanced_functionality: a05_advanced_functionality.html
10-
last_built: 2024-08-29T22:56Z
10+
last_built: 2024-09-18T02:07Z

0 commit comments

Comments
 (0)