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.
1 parent ff51048 commit 1855b1cCopy full SHA for 1855b1c
R/crs.R
@@ -335,7 +335,7 @@ crs_parameters = function(x) {
335
epsg = function(x) {
336
if (is.na(x))
337
NA_integer_
338
- else if (grepl("^EPSG:", x[["input"]]))
+ else if (startsWith(x[["input"]], "EPSG:"))
339
as.integer(gsub("^EPSG:(\\d+)\\b.*$", "\\1", x[["input"]]))
340
else
341
crs_parameters(x)[["epsg"]]
0 commit comments