forked from Botts-Innovative-Research/OSHConnect-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
111 lines (97 loc) · 2.59 KB
/
constants.py
File metadata and controls
111 lines (97 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
from enum import Enum
class APITerms(Enum):
"""
Defines common endpoint terms used in the API
"""
API = 'api'
COLLECTIONS = 'collections'
COMMANDS = 'commands'
COMPONENTS = 'components'
CONFORMANCE = 'conformance'
CONTROL_STREAMS = 'controlstreams'
DATASTREAMS = 'datastreams'
DEPLOYMENTS = 'deployments'
EVENTS = 'events'
FOIS = 'featuresOfInterest'
HISTORY = 'history'
ITEMS = 'items'
OBSERVATIONS = 'observations'
PROCEDURES = 'procedures'
PROPERTIES = 'properties'
SAMPLING_FEATURES = 'samplingFeatures'
SCHEMA = 'schema'
STATUS = 'status'
SYSTEMS = 'systems'
SYSTEM_EVENTS = 'systemEvents'
TASKING = 'controls'
UNDEFINED = ''
class SystemTypes(Enum):
"""
Defines the system types
"""
FEATURE = "Feature"
class ObservationFormat(Enum):
"""
Defines common observation formats
"""
JSON = "application/om+json"
XML = "application/om+xml"
SWE_XML = "application/swe+xml"
SWE_JSON = "application/swe+json"
SWE_CSV = "application/swe+csv"
SWE_BINARY = "application/swe+binary"
SWE_TEXT = "application/swe+text"
class DatastreamResultTypes(Enum):
"""
Defines the datastream result types
"""
MEASURE = "measure"
VECTOR = "vector"
RECORD = "record"
COVERAGE_1D = "coverage1D"
COVERAGE_2D = "coverage2D"
COVERAGE_3D = "coverage3D"
class GeometryTypes(Enum):
"""
Defines the geometry types
"""
POINT = "Point"
LINESTRING = "LineString"
POLYGON = "Polygon"
MULTI_POINT = "MultiPoint"
MULTI_LINESTRING = "MultiLineString"
MULTI_POLYGON = "MultiPolygon"
class APIResourceTypes(Enum):
"""
Defines the resource types
"""
ROOT = ""
COLLECTION = "Collection"
COMMAND = "Command"
COMPONENT = "Component"
CONTROL_CHANNEL = "ControlChannel"
DATASTREAM = "Datastream"
DEPLOYMENT = "Deployment"
OBSERVATION = "Observation"
PROCEDURE = "Procedure"
PROPERTY = "Property"
SAMPLING_FEATURE = "SamplingFeature"
SYSTEM = "System"
SYSTEM_EVENT = "SystemEvent"
SYSTEM_HISTORY = "SystemHistory"
STATUS = "Status"
SCHEMA = "Schema"
class ContentTypes(Enum):
"""
Defines the encoding formats
"""
JSON = "application/json"
XML = "application/xml"
SWE_XML = "application/swe+xml"
SWE_JSON = "application/swe+json"
SWE_CSV = "application/swe+csv"
SWE_BINARY = "application/swe+binary"
SWE_TEXT = "application/swe+text"
GEO_JSON = "application/geo+json"
SML_JSON = "application/sml+json"
OM_JSON = "application/om+json"