Skip to content

Commit

Permalink
Merge pull request #69 from rsbivand/master
Browse files Browse the repository at this point in the history
fix error for old PROJ/GDAL
  • Loading branch information
edzer authored Feb 20, 2020
2 parents 0146d78 + 38d9ae9 commit d6e5a67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/CRS-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ if (!is.R()) {
if (!is.na(uprojargs) && !res[[1]]) stop(res[[2]])
uprojargs <- res[[2]]
comm <- res[[3]]
} else stop("rgdal version mismatch")
} else { #stop("rgdal version mismatch")
if (!is.na(uprojargs)) {
res <- rgdal::checkCRSArgs(uprojargs)
if (!res[[1]]) stop(res[[2]])
uprojargs <- res[[2]]
}
}
} else stop("rgdal version mismatch")
}
res <- new("CRS", projargs=uprojargs)
Expand Down

0 comments on commit d6e5a67

Please sign in to comment.