CornellLabofOrnithology / ebird-best-practices

Best Practices for Using eBird Data
https://CornellLabOfOrnithology.github.io/ebird-best-practices/
Other
32 stars 12 forks source link

st_crs() format change #2

Open Louis-Backstrom opened 4 years ago

Louis-Backstrom commented 4 years ago

When running the code in section 2.5, the st_crs() function does not work as intended:

map_proj <- st_crs(102003) returns the error:

Warning message:
In CPL_crs_from_input(x) :
  GDAL Error 1: PROJ: proj_create_from_database: crs not found

Which then causes several errors down the line. This can be resolved by running map_proj <- st_crs("ESRI:102003") instead. I am assuming this is just a matter of an update to the function (I am running sf version 0.9-4).

mstrimas commented 4 years ago

Hey Louis, thanks for catching this! Annoying thing is that st_crs("ESRI:102003") doesn't work on older versions of sf so I can't just do a straight swap. All these changes to sf and the underlying PROJ package have been a pain! Will think of a good way to address this, thanks!

dustinpsanchez commented 2 years ago

Mstrimas, I wanted to follow up and see if there are any solutions or code workarounds for the error?

Thanks