ebird-best-practices icon indicating copy to clipboard operation
ebird-best-practices copied to clipboard

st_crs() format change

Open Louis-Backstrom opened this issue 4 years ago • 2 comments

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).

Louis-Backstrom avatar Jun 14 '20 02:06 Louis-Backstrom

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 avatar Jun 15 '20 15:06 mstrimas

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

Thanks

dustinpsanchez avatar Oct 28 '21 01:10 dustinpsanchez