Add rasterio.env
block in each method to allow factory defined gdal config #168
Closed
Description
in #108 we introduced custom API route to wrap any gdal code within a specific environment. This worked well for python 3.7 but not for python 3.8. IMO adding a with rasterio.env():
block on top of each call to gdal (rio-tiler) code will make this easier.
How To
- add
gdal_config
intitiler.endpoints.factories.BaseFactory
with default todict
- add
with rasterio.env(**self.gdal_config):
on top of gdal blocks
Metadata
Assignees
Labels
No labels