-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathogc_api_process.py
More file actions
57 lines (50 loc) · 1.91 KB
/
ogc_api_process.py
File metadata and controls
57 lines (50 loc) · 1.91 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
from typing import List
from fastapi import Response
from app.platforms.base import BaseProcessingPlatform
from app.platforms.dispatcher import register_platform
from app.schemas.enum import OutputFormatEnum, ProcessTypeEnum, ProcessingStatusEnum
from app.schemas.parameters import Parameter
from app.schemas.unit_job import ServiceDetails
from stac_pydantic import Collection
@register_platform(ProcessTypeEnum.OGC_API_PROCESS)
class OGCAPIProcessPlatform(BaseProcessingPlatform):
"""
OGC API Process processing platform implementation.
This class handles the execution of processing jobs on the OGC API Process platform.
"""
async def execute_job(
self,
user_token: str,
title: str,
details: ServiceDetails,
parameters: dict,
format: OutputFormatEnum,
) -> str:
raise NotImplementedError("OGC API Process job execution not implemented yet.")
async def execute_synchronous_job(
self,
user_token: str,
title: str,
details: ServiceDetails,
parameters: dict,
format: OutputFormatEnum,
) -> Response:
raise NotImplementedError("OGC API Process job execution not implemented yet.")
async def get_job_status(
self, user_token: str, job_id: str, details: ServiceDetails
) -> ProcessingStatusEnum:
raise NotImplementedError(
"OGC API Process job status retrieval not implemented yet."
)
async def get_job_results(
self, user_token: str, job_id: str, details: ServiceDetails
) -> Collection:
raise NotImplementedError(
"OGC API Process job result retrieval not implemented yet."
)
async def get_service_parameters(
self, user_token: str, details: ServiceDetails
) -> List[Parameter]:
raise NotImplementedError(
"OGC API Process service parameter retrieval not implemented yet."
)