I am refactoring my code which extensively relied on raster
package to now use the newer and better terra
package. I was making use of the isLonLat()
function that returns TRUE
if the crs
of a raster object is angular and FALSE
if it's planar.
Is there a way to do this using terra
instead?
I want to make my code future-proof and the reliance of this function on the now deprecated proj4string is not acceptable.
Best Answer
Well, you have
terra::is.lonlat()
https://www.rdocumentation.org/packages/terra/versions/1.5-17/topics/is.lonlat