Coverage for src/rok4/enums.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-10-01 15:35 +0000

1#! python3 # noqa: E265 

2 

3# standard lib 

4from enum import Enum 

5 

6 

7class PyramidType(Enum): 

8 """Pyramid's data type""" 

9 

10 RASTER = "RASTER" 

11 VECTOR = "VECTOR" 

12 

13 

14class SlabType(Enum): 

15 """Slab's type""" 

16 

17 DATA = "DATA" # Slab of data, raster or vector 

18 MASK = "MASK" # Slab of mask, only for raster pyramid, image with one band : 0 is nodata, other values are data 

19 

20 

21class StorageType(Enum): 

22 """Storage type and path's protocol""" 

23 

24 CEPH = "ceph://" 

25 FILE = "file://" 

26 HTTP = "http://" 

27 HTTPS = "https://" 

28 S3 = "s3://" 

29 

30 

31class ColorFormat(Enum): 

32 """A color format enumeration. 

33 Except from "BIT", the member's name matches 

34 a common variable format name. The member's value is 

35 the allocated bit size associated to this format. 

36 """ 

37 

38 BIT = 1 

39 UINT8 = 8 

40 FLOAT32 = 32