large_image package
Subpackages
- large_image.cache_util package
- Submodules
- large_image.cache_util.base module
- large_image.cache_util.cache module
- large_image.cache_util.cachefactory module
- large_image.cache_util.memcache module
- large_image.cache_util.rediscache module
- Module contents
- large_image.tilesource package
- Submodules
- large_image.tilesource.base module
FileTileSource
TileSource
TileSource.bandCount
TileSource.canRead()
TileSource.convertRegionScale()
TileSource.dtype
TileSource.extensions
TileSource.frames
TileSource.geospatial
TileSource.getAssociatedImage()
TileSource.getAssociatedImagesList()
TileSource.getBandInformation()
TileSource.getBounds()
TileSource.getCenter()
TileSource.getICCProfiles()
TileSource.getInternalMetadata()
TileSource.getLRUHash()
TileSource.getLevelForMagnification()
TileSource.getMagnificationForLevel()
TileSource.getMetadata()
TileSource.getNativeMagnification()
TileSource.getOneBandInformation()
TileSource.getPixel()
TileSource.getPointAtAnotherScale()
TileSource.getPreferredLevel()
TileSource.getRegion()
TileSource.getRegionAtAnotherScale()
TileSource.getSingleTile()
TileSource.getSingleTileAtAnotherScale()
TileSource.getState()
TileSource.getThumbnail()
TileSource.getTile()
TileSource.getTileCount()
TileSource.getTileMimeType()
TileSource.histogram()
TileSource.metadata
TileSource.mimeTypes
TileSource.name
TileSource.nameMatches
TileSource.newPriority
TileSource.style
TileSource.tileFrames()
TileSource.tileIterator()
TileSource.tileIteratorAtAnotherScale()
TileSource.wrapKey()
- large_image.tilesource.geo module
GDALBaseFileTileSource
GDALBaseFileTileSource.extensions
GDALBaseFileTileSource.geospatial
GDALBaseFileTileSource.getBounds()
GDALBaseFileTileSource.getHexColors()
GDALBaseFileTileSource.getNativeMagnification()
GDALBaseFileTileSource.getPixelSizeInMeters()
GDALBaseFileTileSource.getThumbnail()
GDALBaseFileTileSource.getTileCorners()
GDALBaseFileTileSource.isGeospatial()
GDALBaseFileTileSource.mimeTypes
GDALBaseFileTileSource.pixelToProjection()
GDALBaseFileTileSource.projection
GDALBaseFileTileSource.projectionOrigin
GDALBaseFileTileSource.sourceLevels
GDALBaseFileTileSource.sourceSizeX
GDALBaseFileTileSource.sourceSizeY
GDALBaseFileTileSource.toNativePixelCoordinates()
GDALBaseFileTileSource.unitsAcrossLevel0
GeoBaseFileTileSource
make_vsi()
- large_image.tilesource.jupyter module
- large_image.tilesource.resample module
ResampleMethod
ResampleMethod.NP_MAX
ResampleMethod.NP_MAX_COLOR
ResampleMethod.NP_MEAN
ResampleMethod.NP_MEDIAN
ResampleMethod.NP_MIN
ResampleMethod.NP_MIN_COLOR
ResampleMethod.NP_MODE
ResampleMethod.NP_NEAREST
ResampleMethod.PIL_BICUBIC
ResampleMethod.PIL_BILINEAR
ResampleMethod.PIL_BOX
ResampleMethod.PIL_HAMMING
ResampleMethod.PIL_LANCZOS
ResampleMethod.PIL_MAX_ENUM
ResampleMethod.PIL_NEAREST
downsampleTileHalfRes()
numpyResize()
pilResize()
- large_image.tilesource.stylefuncs module
- large_image.tilesource.tiledict module
- large_image.tilesource.tileiterator module
- large_image.tilesource.utilities module
- Module contents
FileTileSource
TileGeneralError
TileGeneralException
TileSource
TileSource.bandCount
TileSource.canRead()
TileSource.convertRegionScale()
TileSource.dtype
TileSource.extensions
TileSource.frames
TileSource.geospatial
TileSource.getAssociatedImage()
TileSource.getAssociatedImagesList()
TileSource.getBandInformation()
TileSource.getBounds()
TileSource.getCenter()
TileSource.getICCProfiles()
TileSource.getInternalMetadata()
TileSource.getLRUHash()
TileSource.getLevelForMagnification()
TileSource.getMagnificationForLevel()
TileSource.getMetadata()
TileSource.getNativeMagnification()
TileSource.getOneBandInformation()
TileSource.getPixel()
TileSource.getPointAtAnotherScale()
TileSource.getPreferredLevel()
TileSource.getRegion()
TileSource.getRegionAtAnotherScale()
TileSource.getSingleTile()
TileSource.getSingleTileAtAnotherScale()
TileSource.getState()
TileSource.getThumbnail()
TileSource.getTile()
TileSource.getTileCount()
TileSource.getTileMimeType()
TileSource.histogram()
TileSource.levels
TileSource.metadata
TileSource.mimeTypes
TileSource.name
TileSource.nameMatches
TileSource.newPriority
TileSource.sizeX
TileSource.sizeY
TileSource.style
TileSource.tileFrames()
TileSource.tileHeight
TileSource.tileIterator()
TileSource.tileIteratorAtAnotherScale()
TileSource.tileWidth
TileSource.wrapKey()
TileSourceAssetstoreError
TileSourceAssetstoreException
TileSourceError
TileSourceException
TileSourceFileNotFoundError
canRead()
dictToEtree()
etreeToDict()
getSourceNameFromDict()
getTileSource()
listExtensions()
listMimeTypes()
listSources()
nearPowerOfTwo()
new()
open()
Submodules
large_image.config module
- large_image.config.cpu_count(logical: bool = True) int [source]
Get the usable CPU count. If psutil is available, it is used, since it can determine the number of physical CPUS versus logical CPUs. This returns the smaller of that value from psutil and the number of cpus allowed by the os scheduler, which means that for physical requests (logical=False), the returned value may be more the the number of physical cpus that are usable.
- Parameters:
logical – True to get the logical usable CPUs (which include hyperthreading). False for the physical usable CPUs.
- Returns:
the number of usable CPUs.
- large_image.config.getConfig(key: str | None = None, default: str | bool | int | Logger | None = None) Any [source]
Get the config dictionary or a value from the cache config settings.
- Parameters:
key – if None, return the config dictionary. Otherwise, return the value of the key if it is set or the default value if it is not.
default – a value to return if a key is requested and not set.
- Returns:
either the config dictionary or the value of a key.
- large_image.config.getLogger(key: str | None = None, default: Logger | None = None) Logger [source]
Get a logger from the config. Ensure that it is a valid logger.
- Parameters:
key – if None, return the ‘logger’.
default – a value to return if a key is requested and not set.
- Returns:
a logger.
- large_image.config.minimizeCaching(mode=None)[source]
Set python cache sizes to very low values.
- Parameters:
mode – None for all caching, ‘tile’ for the tile cache, ‘source’ for the source cache.
large_image.constants module
- class large_image.constants.SourcePriority(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntEnum
- FALLBACK = 10
- FALLBACK_HIGH = 9
- HIGH = 3
- HIGHER = 2
- IMPLICIT = 8
- IMPLICIT_HIGH = 7
- LOW = 5
- LOWER = 6
- MANUAL = 11
- MEDIUM = 4
- NAMED = 0
- PREFERRED = 1
large_image.exceptions module
- exception large_image.exceptions.TileCacheConfigurationError[source]
Bases:
TileCacheError
- exception large_image.exceptions.TileCacheError[source]
Bases:
TileGeneralError
- large_image.exceptions.TileGeneralException
alias of
TileGeneralError
- exception large_image.exceptions.TileSourceAssetstoreError[source]
Bases:
TileSourceError
- large_image.exceptions.TileSourceAssetstoreException
alias of
TileSourceAssetstoreError
- exception large_image.exceptions.TileSourceError[source]
Bases:
TileGeneralError
- large_image.exceptions.TileSourceException
alias of
TileSourceError
- exception large_image.exceptions.TileSourceFileNotFoundError(*args, **kwargs)[source]
Bases:
TileSourceError
,FileNotFoundError
- exception large_image.exceptions.TileSourceInefficientError[source]
Bases:
TileSourceError
- exception large_image.exceptions.TileSourceMalformedError[source]
Bases:
TileSourceError
- exception large_image.exceptions.TileSourceXYZRangeError[source]
Bases:
TileSourceError