Some products store the CRS string in ESRI/OGC WKT format rather than as an
EPSG code. Data cube CRS or Geometry classes are hard to use in AWS
Lambdas due to the large size of GDAL or rasterio. Together with other
dependencies, they exceed the 50MB size limit of AWS Lambdas files).
Instead, we can use the pure python pycrs library to parse crs strings to proj4 format.
Some products store the
CRS
string inESRI/OGC WKT
format rather than as anEPSG
code.Data cube CRS
orGeometry
classes are hard to use in AWS Lambdas due to the large size ofGDAL
orrasterio
. Together with other dependencies, they exceed the 50MB size limit of AWS Lambdas files).Instead, we can use the pure python
pycrs
library to parsecrs strings
toproj4
format.