gws.plugin.gekos.core

Configuration types for the GekoS index.

Source code: gws.plugin.gekos.core

Module Contents

class gws.plugin.gekos.core.IndexConfig(*args, **kwargs)

Bases: gws.Config

Index of GekoS records in a database table.

crs: gws.CrsName

CRS for GekoS data.

dbUid: str | None

UID of the database provider for the index table.

position: PositionConfig | None

Position correction for points.

sources: list[SourceConfig]

gek-online sources to load records from.

tableName: str

Database table for the GekoS index.

class gws.plugin.gekos.core.PositionConfig(*args, **kwargs)

Bases: gws.Config

Correction of point positions in the GekoS index.

angle: int = 0

Angle step in degrees for spreading points with the same location.

distance: int = 0

Radius of the circle on which points with the same location are spread.

offsetX: int

Offset added to X coordinates of points.

offsetY: int

Offset added to Y coordinates of points.

class gws.plugin.gekos.core.SourceConfig(*args, **kwargs)

Bases: gws.Config

Gek-online source configuration.

instance: str

Instance name for gek-online calls, used to create unique UIDs.

params: dict

Query parameters for gek-online calls.

url: gws.Url

Base URL for gek-online calls.