stackstac.rio_env.LayeredEnv#
- class stackstac.rio_env.LayeredEnv(always, open=None, open_vrt=None, read=None)#
Manage GDAL configuration options for different situations (always, opening, reading).
Access the
rasterio.Envfor each situation withlayered_env.always,layered_env.read, etc. To ensure thread-safety, each thread accessing these properties gets its own thread-local copy of arasterio.Env.Options are layered as follows:
always: the base set of optionsopen:always+openopen_vrt:open+open_vrtread:always+read
- __init__(always, open=None, open_vrt=None, read=None)#
Methods
__init__(always[, open, open_vrt, read])updated([always, open, open_vrt, read])Duplicate this LayeredEnv, adding additional options for each situation.
Attributes
alwaysBase
rasterio.Envobjectopenrasterio.Envobject to use while opening datasetsopen_vrtrasterio.Envobject to use while opening VRTsreadrasterio.Envobject to use while reading from datasets