Passer au contenu

GEE requires CRS in WKT1 (OGC) format, not WKT2 or PROJ4 strings. Modern GDAL/PROJ versions output WKT2 by default, which GEE cannot parse. This helper extracts the CRS and converts it to WKT1 format using gdalsrsinfo.

Utilisation

get_crs_wkt(x)

Arguments

x

A SpatRaster, SpatVector, or sf object

Valeur de retour

Character string with WKT1 CRS definition