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
« prev ^ index » next coverage.py v7.6.1, created at 2024-10-01 15:35 +0000
1#! python3 # noqa: E265
3# standard lib
4from enum import Enum
7class PyramidType(Enum):
8 """Pyramid's data type"""
10 RASTER = "RASTER"
11 VECTOR = "VECTOR"
14class SlabType(Enum):
15 """Slab's type"""
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
21class StorageType(Enum):
22 """Storage type and path's protocol"""
24 CEPH = "ceph://"
25 FILE = "file://"
26 HTTP = "http://"
27 HTTPS = "https://"
28 S3 = "s3://"
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 """
38 BIT = 1
39 UINT8 = 8
40 FLOAT32 = 32