gws.plugin.raster_layer.provider

Raster image provider.

Source code: gws.plugin.raster_layer.provider

Module Contents

class gws.plugin.raster_layer.provider.Config(*args, **kwargs)

Bases: gws.Config

Raster data provider.

crs: gws.CrsName | None

Default CRS for the images.

pathPattern: str | None

Glob pattern for image file paths.

paths: list[gws.FilePath] | None

List of image file paths.

class gws.plugin.raster_layer.provider.ImageEntry(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

bounds: gws.Bounds
path: str
class gws.plugin.raster_layer.provider.Object

Bases: gws.Node

GWS object tree node.

crs: gws.Crs | None
paths: list[str]
configure()

Configuration hook.

enumerate_images(default_crs: gws.Crs) list[ImageEntry]
make_tile_index(entries: list[ImageEntry], file_name: str) str