-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into compliance/rename-files-to-comply-pep8
- Loading branch information
Showing
20 changed files
with
349 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ doc = [ | |
|
||
dev = [ | ||
"black", | ||
"isort >= 5.12.0", | ||
"pre-commit >3,<4" | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#! python3 # noqa: E265 | ||
|
||
# standard lib | ||
from enum import Enum | ||
|
||
|
||
class PyramidType(Enum): | ||
"""Pyramid's data type""" | ||
|
||
RASTER = "RASTER" | ||
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): | ||
"""Storage type and path's protocol""" | ||
|
||
CEPH = "ceph://" | ||
FILE = "file://" | ||
HTTP = "http://" | ||
HTTPS = "https://" | ||
S3 = "s3://" | ||
|
||
class ColorFormat(Enum): | ||
"""A color format enumeration. | ||
Except from "BIT", the member's name matches | ||
a common variable format name. The member's value is | ||
the allocated bit size associated to this format. | ||
""" | ||
|
||
BIT = 1 | ||
UINT8 = 8 | ||
FLOAT32 = 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.