ebird-best-practices
ebird-best-practices copied to clipboard
st_crs() format change
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).
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!
Mstrimas, I wanted to follow up and see if there are any solutions or code workarounds for the error?
Thanks