We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4f2820 + 51e9b49 commit 0124a8bCopy full SHA for 0124a8b
R/crs.R
@@ -335,7 +335,8 @@ crs_parameters = function(x) {
335
epsg = function(x) {
336
if (is.na(x))
337
NA_integer_
338
- else if (startsWith(x[["input"]], "EPSG:"))
+ else if (grepl("^EPSG:", x[["input"]]))
339
+ # else if (startsWith(x[["input"]], "EPSG:"))
340
as.integer(gsub("^EPSG:(\\d+)\\b.*$", "\\1", x[["input"]]))
341
else
342
crs_parameters(x)[["epsg"]]
0 commit comments