Skip to content

Commit

Permalink
Move SlabType to enums module
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Jul 18, 2023
1 parent 175152b commit 5672c87
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/rok4/Pyramid.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@
from rok4.TileMatrixSet import TileMatrixSet, TileMatrix
from rok4.Storage import *
from rok4.Utils import *
from rok4.enums import PyramidType, StorageType


class SlabType(Enum):
"""Slab's type"""

DATA = "DATA" # Slab of data, raster or vector
MASK = "MASK" # Slab of mask, only for raster pyramid, image with one band : 0 is nodata, other values are data
from rok4.enums import PyramidType, SlabType, StorageType


ROK4_IMAGE_HEADER_SIZE = 2048
Expand Down
7 changes: 7 additions & 0 deletions src/rok4/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ class PyramidType(Enum):
VECTOR = "VECTOR"


class SlabType(Enum):
"""Slab's type"""

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


class StorageType(Enum):
"""Matrice de correspondance entre type de stockage et protocole."""

Expand Down
2 changes: 1 addition & 1 deletion tests/test_Pyramid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rok4.Pyramid import *
from rok4.TileMatrixSet import TileMatrixSet
from rok4.enums import StorageType
from rok4.enums import SlabType, StorageType
from rok4.Utils import *
from rok4.Exceptions import *

Expand Down

0 comments on commit 5672c87

Please sign in to comment.