input
input
This module contains the execute request of a process job. It is shaped along the
execute request of OGC API - Processes - Part 1: Core
(https://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/execute.yaml),
carrying its inputs and outputs. OGC API - Processes holds them as maps by id, xsdata
can't bind a map of dataclasses, therefore the id is part of each entry and they are lists
(see InputDescription).
ExecuteInput
dataclass
The value of one input of a process.
Attributes:
-
id(str) –The identifier of the input, the QGIS parameter name.
-
value(list[QslJobLayer | str | int | float | bool]) –The values of the input, one entry for an input taking a single value. A layer value is substituted in place by its
QslJobLayer.
Source code in src/qgis_server_light/interface/job/process/input.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
value: list[QslJobLayer | str | int | float | bool] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, value: list[QslJobLayer | str | int | float | bool] = list()) -> None
ExecuteOutput
dataclass
The format a client wants a file output in.
Attributes:
-
id(str) –The identifier of the output, the QGIS output name.
-
format(Format) –The format the output is written in.
Source code in src/qgis_server_light/interface/job/process/input.py
45 46 47 48 49 50 51 52 53 54 55 | |
format: Format = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, format: Format) -> None
Format
dataclass
The format of a file output.
Attributes:
-
media_type(str) –One of the media types the description offers for the output.
Source code in src/qgis_server_light/interface/job/process/input.py
34 35 36 37 38 39 40 41 42 | |
media_type: str = field(metadata={'type': 'Element', 'name': 'mediaType'})
class-attribute
instance-attribute
__init__(media_type: str) -> None
QslJobInfoExecuteProcess
dataclass
Bases: QslJobInfoParameter
The job of a process execution, queued with RedisStateQueue.submit.
Source code in src/qgis_server_light/interface/job/process/input.py
74 75 76 77 78 | |
job: QslJobParameterExecuteProcess = field(metadata={'type': 'Element', 'required': True})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameterExecuteProcess, execution_mode: ExecutionMode = ExecutionMode.SYNC) -> None
QslJobParameterExecuteProcess
dataclass
Bases: QslJobParameter
The execute request of a process.
Attributes:
-
process_id(str) –The identifier of the process, the QGIS algorithm id.
-
inputs(list[ExecuteInput]) –The values of the inputs, an input which is left out takes its default.
-
outputs(list[ExecuteOutput]) –The formats chosen for file outputs, an output which is left out is written in the first format its description offers.
Source code in src/qgis_server_light/interface/job/process/input.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |