Coverage for gws-app/gws/plugin/gekos/core.py: 0%

37 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-24 12:46 +0200

1from typing import Optional 

2 

3 

4import gws 

5 

6 

7class PositionConfig(gws.Config): 

8 """Position correction for points.""" 

9 

10 offsetX: int 

11 """X-offset for points.""" 

12 offsetY: int 

13 """Y-offset for points.""" 

14 distance: int = 0 

15 """Radius for points repelling.""" 

16 angle: int = 0 

17 """Angle for points repelling.""" 

18 

19 

20class SourceConfig(gws.Config): 

21 """Configuration for a gek-online source.""" 

22 

23 url: gws.Url 

24 """Base URL for gek-online calls.""" 

25 params: dict 

26 """Parameters for gek-online calls.""" 

27 instance: str 

28 """Instance name for gek-online calls, used to create unique uids.""" 

29 

30 

31class IndexConfig(gws.Config): 

32 """Configuration for the GekoS index.""" 

33 

34 sources: list[SourceConfig] 

35 """List of gek-online sources.""" 

36 position: Optional[PositionConfig] 

37 """Position correction for points.""" 

38 tableName: str 

39 """SQL table name for storing GekoS data.""" 

40 crs: gws.CrsName 

41 """CRS for GekoS data.""" 

42 crs: gws.CrsName 

43 """CRS for gekos data.""" 

44 dbUid: Optional[str] 

45 """Database provider uid.""" 

46 sources: list[SourceConfig] 

47 """Gek-online instance names.""" 

48 position: Optional[PositionConfig] 

49 """Position correction for points.""" 

50 tableName: str 

51 """Sql table name."""