job
job
common
input
AbstractFilter
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/job/common/input.py
48 49 50 51 52 53 54 | |
definition: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
shortened_fields: set
property
__init__(definition: str) -> None
OgcFilter110
dataclass
Bases: AbstractFilter
A filter which definition conforms to
https://schemas.opengis.net/filter/1.1.0/filter.xsd
and which is consumable by qgis.core.QgsOgcUtils.expressionFromOgcFilter.
Source code in src/qgis_server_light/interface/job/common/input.py
57 58 59 60 61 62 63 | |
__init__(definition: str) -> None
OgcFilterFES20
dataclass
Bases: AbstractFilter
A filter which definition conforms to https://www.opengis.net/fes/2.0
and which is consumable by qgis.core.QgsOgcUtils.expressionFromOgcFilter.
Source code in src/qgis_server_light/interface/job/common/input.py
66 67 68 69 70 71 | |
__init__(definition: str) -> None
QslJobInfoParameter
dataclass
Bases: ABC
The common minimal interface of a job which is shipped around. Each job for QSL has to implement at least this interface.
Attributes:
-
id(str) –The unique identifier which is used to recognize the job all over its lifecycle.
-
type(str) –A string based identifier of the job, this is used to quickly determine its nature serialized state.
-
job(QslJobParameter) –The actual job parameters. This is a domain specific dataclass depending on the nature of the actual job.
Source code in src/qgis_server_light/interface/job/common/input.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
job: QslJobParameter = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
type: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameter) -> None
QslJobLayer
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/job/common/input.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
driver: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
filter: OgcFilter110 | OgcFilterFES20 | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
folder_name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
redacted_fields: set
property
remote: bool = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
source: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
style: Style | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, source: str, remote: bool, folder_name: str, driver: str, style: Style | None = None, filter: OgcFilter110 | OgcFilterFES20 | None = None) -> None
QslJobParameter
dataclass
Bases: ABC
The minimal interface of a job parameter interface. In the domain specific refinement it holds the relevant information about a job.
Source code in src/qgis_server_light/interface/job/common/input.py
7 8 9 10 11 12 13 | |
__init__() -> None
QslJobParameterMapRelated
dataclass
Bases: QslJobParameter
The minimal interface of a job parameter interface for jobs rendering things in the end.
Attributes:
-
svg_paths(list[str]) –A list of paths to svg's (folders) which are necessary for the job to render nicely.
Source code in src/qgis_server_light/interface/job/common/input.py
36 37 38 39 40 41 42 43 44 45 | |
svg_paths: list[str] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(svg_paths: list[str] = list()) -> None
output
JobResult
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/job/common/output.py
7 8 9 10 11 12 13 14 15 16 17 | |
content_type: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
data: Any = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
shortened_fields: set
property
worker_host_name: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
worker_id: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, data: Any, content_type: str, worker_id: str | None = None, worker_host_name: str | None = None) -> None
feature
input
FeatureQuery
dataclass
Bases: BaseInterface
Represents definitions of a query to obtain features from a list of layers. Be aware, that filters are not applied to the QslJobLayer in this implementation since passed filters can contain inter-layer-references.
Attributes:
-
layers(list[QslJobLayer]) –A list layers which should only reference vector sources and be queried.
-
aliases(list[str]) –An optional list of alias names. This has to be the same length as the list of datasets.
-
filter(OgcFilterFES20) –An optional filter which might reference all passed layers thats why layers has to be added
Source code in src/qgis_server_light/interface/job/feature/input.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
aliases: list[str] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
filter: OgcFilterFES20 = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
layers: list[QslJobLayer] = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(layers: list[QslJobLayer], aliases: list[str] = list(), filter: OgcFilterFES20 = None) -> None
QslJobInfoFeature
dataclass
Bases: QslJobInfoParameter
Source code in src/qgis_server_light/interface/job/feature/input.py
56 57 58 | |
job: QslJobParameterFeature = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameterFeature) -> None
QslJobParameterFeature
dataclass
Bases: QslJobParameter
As defined in WFS 2.0 specs, a request can be subdivided in a list of queries. This class is representing that.
Attributes:
-
queries(list[FeatureQuery]) –A list of queries which features should be extracted for.
-
start_index(int) –The offset for paging reason.
-
count(int | None) –The number of results to return.
Source code in src/qgis_server_light/interface/job/feature/input.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
count: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
queries: list[FeatureQuery] = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
start_index: int = field(default=0, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(queries: list[FeatureQuery], start_index: int = 0, count: int | None = None) -> None
output
Attribute
dataclass
Bases: BaseInterface
An attribute belonging to a feature. The aim here is to drill down to simple types which can be used in consuming applications without further handling. This does not include the geometry attribute!
Attributes:
-
name(str) –The name of the attribute. Has to match with the name used for exported fields with
Fieldclass. -
value(int | float | str | bool | bytes | None) –Value as simple as possible. It has to be pickleable
Source code in src/qgis_server_light/interface/job/feature/output.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
value: int | float | str | bool | bytes | None = field(metadata={'type': 'Element', 'format': 'base64'})
class-attribute
instance-attribute
__init__(name: str, value: int | float | str | bool | bytes | None) -> None
Feature
dataclass
Bases: BaseInterface
Feature to hold information of extracted QgsFeature.
Attributes:
-
geometry(Geometry | None) –The geometry representing the feature.
-
attributes(list[Attribute]) –List of attributes defined in this feature.
Source code in src/qgis_server_light/interface/job/feature/output.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |
attributes: list[Attribute] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
geometry: Geometry | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(geometry: Geometry | None = None, attributes: list[Attribute] = list()) -> None
FeatureCollection
dataclass
Bases: BaseInterface
This construction is used to abstract the content of extracted features for pickelable transportation from QSL to the queue. This way we ensure how things are constructed and transported.
Attributes:
-
name(str) –The name of the feature collection. This is the key to match it to requested layers.
-
features(list[Feature]) –The features belonging to the feature collection.
Source code in src/qgis_server_light/interface/job/feature/output.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
features: list[Feature] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(name: str, features: list[Feature] = list()) -> None
Geometry
dataclass
Bases: Attribute
Source code in src/qgis_server_light/interface/job/feature/output.py
27 28 29 30 31 32 33 34 35 36 | |
name: str = field(default='geometry', metadata={'type': 'Element'})
class-attribute
instance-attribute
shortened_fields: set
property
value: bytes | None = field(default=None, metadata={'type': 'Element', 'format': 'base64'})
class-attribute
instance-attribute
__init__(name: str = 'geometry', value: bytes | None = None) -> None
QueryCollection
dataclass
Bases: BaseInterface
Holds all feature collections which are bound to the passed queries. The order in the list has to be not changed, so that consuming applications can map the response to the passed queries.
Attributes:
-
numbers_matched(str | int) –Information about how many matches are fund for the executed query.
-
feature_collections(list[FeatureCollection]) –The feature collections belonging to the passed queries.
Source code in src/qgis_server_light/interface/job/feature/output.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | |
feature_collections: list[FeatureCollection] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
numbers_matched: str | int = field(default='unknown', metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(numbers_matched: str | int = 'unknown', feature_collections: list[FeatureCollection] = list()) -> None
feature_info
input
QslJobInfoFeatureInfo
dataclass
Bases: QslJobInfoParameter
Source code in src/qgis_server_light/interface/job/feature_info/input.py
44 45 46 47 48 | |
job: QslJobParameterFeatureInfo = field(metadata={'type': 'Element', 'required': True})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameterFeatureInfo) -> None
QslJobParameterFeatureInfo
dataclass
Bases: QslJobParameter
A runner to extract feature info
Source code in src/qgis_server_light/interface/job/feature_info/input.py
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 | |
I: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
INFO_FORMAT: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
J: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
QUERY_LAYERS: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
X: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
Y: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
decide_x: int
property
decide_y: int
property
query_layers_list
property
__init__(*, INFO_FORMAT: str, QUERY_LAYERS: str, X: str | None = None, Y: str | None = None, I: str | None = None, J: str | None = None) -> None
__post_init__()
Source code in src/qgis_server_light/interface/job/feature_info/input.py
21 22 23 24 25 26 27 28 29 | |
output
legend
input
QslJobInfoLegend
dataclass
Bases: QslJobInfoParameter
Source code in src/qgis_server_light/interface/job/legend/input.py
14 15 16 | |
job: QslJobParameterLegend = field(metadata={'type': 'Element', 'required': True})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameterLegend) -> None
QslJobParameterLegend
dataclass
Bases: QslJobParameter
Render legend
Source code in src/qgis_server_light/interface/job/legend/input.py
9 10 11 | |
__init__() -> None
output
process
input
output
render
input
QslJobInfoRender
dataclass
Bases: QslJobInfoParameter
Source code in src/qgis_server_light/interface/job/render/input.py
30 31 32 | |
job: QslJobParameterRender = field(metadata={'type': 'Element', 'required': True})
class-attribute
instance-attribute
__init__(id: str, type: str, job: QslJobParameterRender) -> None
QslJobParameterRender
dataclass
Bases: QslJobParameter
A runner to be rendered as an image
Source code in src/qgis_server_light/interface/job/render/input.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
bbox: BBox = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
crs: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
dpi: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
format: str = field(default='image/png', metadata={'type': 'Element'})
class-attribute
instance-attribute
height: int = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
layers: list[QslJobLayer] = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
width: int = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(*, layers: list[QslJobLayer], bbox: BBox, crs: str, width: int, height: int, dpi: int | None = None, format: str = 'image/png') -> None
get_layer_by_name(name: str) -> QslJobLayer
Source code in src/qgis_server_light/interface/job/render/input.py
23 24 25 26 27 | |