Skip to content

Conversation

@MichaelChirico
Copy link
Contributor

This should be faster and more readable.

There is one more usage:

sf/R/crs.R

Line 338 in ff51048

else if (grepl("^EPSG:", x[["input"]]))

But grepl() has some difference with respect to NA_character_ input, so the technical equivalent would be !is.na(x[["input"]]) && startsWith(x[["input"]], "EPSG:"), not quite as clean (though it may be preferable to expose the NA checking explicitly.

@edzer edzer merged commit 054166e into r-spatial:main Jun 22, 2023
@MichaelChirico MichaelChirico deleted the startswith branch June 22, 2023 20:30
edzer added a commit that referenced this pull request Jun 23, 2023
edzer added a commit that referenced this pull request Jun 28, 2023
@edzer
Copy link
Member

edzer commented Jun 28, 2023

I reverted 1855b1c as it broke one of the tests that are ran only locally (requiring postgresql/postgis).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants