Skip to content

Add rasterio.env block in each method to allow factory defined gdal config #168

Closed
@vincentsarago

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 in titiler.endpoints.factories.BaseFactory with default to dict
  • add with rasterio.env(**self.gdal_config): on top of gdal blocks

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions