Skip to content

Commit

Permalink
patch projjson for crs objects created with legacy gdal
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynorth committed Dec 18, 2023
1 parent 030fcce commit 0e239f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ wk_crs_proj_definition.crs <- function(crs, proj_version = NULL, verbose = FALSE
#' @export
wk_crs_projjson.crs <- function(crs) {
json <- crs$ProjJson
if (is.null(json)) {
if (is.null(json) || is.na(json[1])) {
# i.e., GDAL is not >= 3.1.0
NextMethod()
} else {
Expand Down

0 comments on commit 0e239f5

Please sign in to comment.