Skip to content

Commit 0124a8b

Browse files
committed
Merge branch 'try2191'
2 parents f4f2820 + 51e9b49 commit 0124a8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/crs.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ crs_parameters = function(x) {
335335
epsg = function(x) {
336336
if (is.na(x))
337337
NA_integer_
338-
else if (startsWith(x[["input"]], "EPSG:"))
338+
else if (grepl("^EPSG:", x[["input"]]))
339+
# else if (startsWith(x[["input"]], "EPSG:"))
339340
as.integer(gsub("^EPSG:(\\d+)\\b.*$", "\\1", x[["input"]]))
340341
else
341342
crs_parameters(x)[["epsg"]]

0 commit comments

Comments
 (0)