Closed elgabbas closed 6 months ago
! GDAL Message 1: The definition of projected CRS EPSG:3035 got from GeoTIFF keys is not the same...
This warning is coming not coming from exactextract
. If you're using terra
, you can set GDAL config options using setGDALconfig
(https://rspatial.github.io/terra/reference/gdal.html)
Polygons transformed to raster CRS (EPSG:NA)
If you want to avoid the message, you can transform polygons to the raster CRS using st_transform
before calling exact_extract
.
Thanks @dbaston for sharing this info. The first warning was not related to exactextractr
. I used the setGDALconfig
to switch this warning off. I will see if I need to reproject the polygons.
Hello, I am receiving the following warning when using
exactextractr
with Corine land cover (CLC) data. The function works as expected (thanks!) but is there a way to avoid this warning without usingsupressWarnings()
around theexactextractr::exact_extract
functions?How to change the projection of CLC to meet with the EPSG registry? or how to change
GTIFF_SRS_SOURCE
configuration option in R as implemented in this question and this question.Here is the warning using a Linux HPC
and on a Windows PC
Here is the CRS information of the CLC map
And this is the CRS of the polygon
This is linked to this this and (this)[https://github.com/isciences/exactextractr/issues/28] issues.