GeoscienceAustralia / dea-orchestration

4 stars 1 forks source link

Refactored valid data projection code for STAC lambdas #111

Closed ashoka1234 closed 5 years ago

ashoka1234 commented 5 years ago

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.