Skip to content

StubFetcher

Bases: IDMixin

Tile fetcher for tiles with no channels

Experimental

StubFetcher is experimental since 1.4.0 and may change without notice.

Implements the TileFetcher protocol.

PARAMETER DESCRIPTION
tile_size

Tile size in meters

TYPE: TileSize

delay

Delay in seconds

TYPE: float DEFAULT: 0.0

jitter

Jitter in seconds

TYPE: float DEFAULT: 0.0

id property

RETURNS DESCRIPTION
uuid.UUID

ID

from_config classmethod

Creates a stub fetcher from the configuration.

PARAMETER DESCRIPTION
config

Configuration

TYPE: StubFetcherConfig

RETURNS DESCRIPTION
StubFetcher

Stub fetcher

__call__

Fetches a tile with no channels.

PARAMETER DESCRIPTION
coordinates

Coordinates (x_min, y_min) of the tile in meters

TYPE: Coordinates

RETURNS DESCRIPTION
Tile

Tile


StubFetcherConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of StubFetcher

Usage

You can create the configuration from a config file.

config.yaml
package: 'aviary'
name: 'StubFetcher'
config:
  tile_size: 128
  delay: 0.
  jitter: 0.
ATTRIBUTE DESCRIPTION
tile_size

Tile size in meters

TYPE: TileSize

delay

Delay in seconds - defaults to 0.

TYPE: float

jitter

Jitter in seconds - defaults to 0.

TYPE: float