samgis / src /utilities /constants.py
aletrn's picture
[refactor] rename predictor.py, move ROOT folder to /tmp to avoid RO filesystem errors
e945b1f
raw
history blame
829 Bytes
"""Project constants"""
CHANNEL_EXAGGERATIONS_LIST = [2.5, 1.1, 2.0]
INPUT_CRS_STRING = "EPSG:4326"
OUTPUT_CRS_STRING = "EPSG:3857"
ROOT = "/tmp"
NODATA_VALUES = -32768
SKIP_CONDITIONS_LIST = [{"skip_key": "confidence", "skip_value": 0.5, "skip_condition": "major"}]
FEATURE_SQUARE_TEMPLATE = [
{'type': 'Feature', 'properties': {'id': 1},
'geometry': {
'type': 'MultiPolygon',
'coordinates': [[]]
}}
]
GEOJSON_SQUARE_TEMPLATE = {
'type': 'FeatureCollection', 'name': 'etna_wgs84p',
'crs': {'type': 'name', 'properties': {'name': 'urn:ogc:def:crs:OGC:1.3:CRS84'}},
'features': FEATURE_SQUARE_TEMPLATE
}
CUSTOM_RESPONSE_MESSAGES = {
200: "ok",
422: "Missing required parameter",
500: "Internal server error"
}
MODEL_NAME = "FastSAM-s.pt"
ZOOM = 13
SOURCE_TYPE = "Satellite"