exporter
exporter
api
ExportParameters
dataclass
Bases: BaseInterface
The serializable request parameters which are accepted by the exporter service.
Source code in src/qgis_server_light/interface/exporter/api.py
6 7 8 9 10 11 12 13 14 | |
output_format: str = field(metadata={'type': 'Element'}, default='json')
class-attribute
instance-attribute
project_path: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
unify_layer_names_by_group: bool = field(metadata={'type': 'Element'}, default=False)
class-attribute
instance-attribute
__init__(project_path: str, unify_layer_names_by_group: bool = False, output_format: str = 'json') -> None
ExportResult
dataclass
Bases: BaseInterface
The serializable response which is provided by the exporter service.
Source code in src/qgis_server_light/interface/exporter/api.py
17 18 19 20 21 22 23 24 | |
content: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
successful: bool = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(successful: bool, content: str) -> None
extract
This module contains all interface definition to translate from QGIS project to QGIS-Server-Light logic and to write the JSON export of the QGIS project
AbstractDataset
dataclass
Bases: LayerLike
Source code in src/qgis_server_light/interface/exporter/extract.py
222 223 224 | |
title: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool, title: str) -> None
Config
dataclass
Bases: ResultWithMessages
Source code in src/qgis_server_light/interface/exporter/extract.py
951 952 953 954 955 956 957 958 959 | |
datasets: Datasets = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
meta_data: MetaData = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
relations: list[Relation] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
tree: Tree = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(project: Project, exporter: Exporter, meta_data: MetaData, tree: Tree, datasets: Datasets, relations: list[Relation] = list(), *, messages: list[ExportMessage] = list()) -> None
Custom
dataclass
Bases: DataSet
Source code in src/qgis_server_light/interface/exporter/extract.py
707 708 709 | |
__init__(id: str, name: str, is_checked: bool, title: str, source: DataSource, driver: str, bbox: BBox | None = None, bbox_wgs84: BBox | None = None, crs: Crs | None = None, styles: list[Style] = list(), minimum_scale: float | None = None, maximum_scale: float | None = None, style_name: str = 'default', is_spatial: bool = True, is_background: bool = False) -> None
DataSet
dataclass
Bases: AbstractDataset
Source code in src/qgis_server_light/interface/exporter/extract.py
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 | |
bbox: BBox | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
bbox_wgs84: BBox | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
crs: Crs | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
driver: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
is_background: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
is_spatial: bool = field(default=True, metadata={'type': 'Element'})
class-attribute
instance-attribute
maximum_scale: float | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
minimum_scale: float | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
source: DataSource = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
style_name: str = field(default='default', metadata={'type': 'Element'})
class-attribute
instance-attribute
styles: list[Style] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool, title: str, source: DataSource, driver: str, bbox: BBox | None = None, bbox_wgs84: BBox | None = None, crs: Crs | None = None, styles: list[Style] = list(), minimum_scale: float | None = None, maximum_scale: float | None = None, style_name: str = 'default', is_spatial: bool = True, is_background: bool = False) -> None
get_style_by_name(name: str) -> Style | None
Source code in src/qgis_server_light/interface/exporter/extract.py
660 661 662 663 664 | |
style() -> Style | None
Source code in src/qgis_server_light/interface/exporter/extract.py
666 667 | |
DataSource
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 | |
definition: PostgresSource | WmtsSource | WmsSource | OgrSource | GdalSource | WfsSource | VectorTileSource | XYZSource | WcsSource | None
property
gdal: GdalSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
ogr: OgrSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
postgres: PostgresSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
vector_tile: VectorTileSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
wcs: WcsSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
wfs: WfsSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
wms: WmsSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
wmts: WmtsSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
xyz: XYZSource | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(postgres: PostgresSource | None = None, wmts: WmtsSource | None = None, wms: WmsSource | None = None, ogr: OgrSource | None = None, gdal: GdalSource | None = None, wfs: WfsSource | None = None, vector_tile: VectorTileSource | None = None, xyz: XYZSource | None = None, wcs: WcsSource | None = None) -> None
Datasets
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 | |
custom: list[Custom] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
group: list[Group] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
raster: list[Raster] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
vector: list[Vector] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(vector: list[Vector] = list(), raster: list[Raster] = list(), custom: list[Custom] = list(), group: list[Group] = list()) -> None
find_dataset_by_id(id: str) -> Vector | Raster | Custom | None
Finds a dataset by id in the list of passed datasets.
Parameters:
-
id(str) –The id value which should be looked up
Returns:
Source code in src/qgis_server_light/interface/exporter/extract.py
831 832 833 834 835 836 837 838 839 840 841 842 843 844 | |
find_group_by_id(identifier: str) -> Group | None
Source code in src/qgis_server_light/interface/exporter/extract.py
846 847 848 849 850 | |
EditorWidget
dataclass
Bases: BaseInterface
Holds the configuration of the editor widget of a field. Only one of the
attributes is set, matching Field.editor_widget_type.
Source code in src/qgis_server_light/interface/exporter/extract.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
definition: ValueMap | ValueRelation | RelationReference | Range | None
property
range: Range | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
relation_reference: RelationReference | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
value_map: ValueMap | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
value_relation: ValueRelation | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(value_map: ValueMap | None = None, value_relation: ValueRelation | None = None, relation_reference: RelationReference | None = None, range: Range | None = None) -> None
ExportMessage
dataclass
Bases: BaseInterface
A warning or error produced while exporting the QGIS project.
Source code in src/qgis_server_light/interface/exporter/extract.py
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 | |
code: Code = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
layer_id: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
level: Level = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
message: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
Code
Bases: StrEnum
Source code in src/qgis_server_light/interface/exporter/extract.py
906 907 908 909 910 911 912 913 914 915 916 917 918 | |
FIELD_EDITOR_WIDGET_TYPE_UNSUPPORTED = 'field_editor_widget_type_unsupported'
class-attribute
instance-attribute
LAYER_EMPTY = 'layer_empty'
class-attribute
instance-attribute
LAYER_EXTENT_FROM_PROJECT = 'layer_extent_from_project'
class-attribute
instance-attribute
LAYER_EXTENT_MISSING = 'layer_extent_missing'
class-attribute
instance-attribute
LAYER_EXTENT_REPROJECTION_FAILED = 'layer_extent_reprojection_failed'
class-attribute
instance-attribute
LAYER_INVALID = 'layer_invalid'
class-attribute
instance-attribute
LAYER_PROVIDER_UNSUPPORTED = 'layer_provider_unsupported'
class-attribute
instance-attribute
LAYER_TYPE_UNSUPPORTED = 'layer_type_unsupported'
class-attribute
instance-attribute
PROJECT_READ_FAILED = 'project_read_failed'
class-attribute
instance-attribute
PROJECT_VERSION_UNSUPPORTED = 'project_version_unsupported'
class-attribute
instance-attribute
TREE_NODE_UNSUPPORTED = 'tree_node_unsupported'
class-attribute
instance-attribute
UNEXPECTED_ERROR = 'unexpected_error'
class-attribute
instance-attribute
Level
Bases: StrEnum
Source code in src/qgis_server_light/interface/exporter/extract.py
902 903 904 | |
ERROR = 'error'
class-attribute
instance-attribute
WARNING = 'warning'
class-attribute
instance-attribute
__init__(level: Level, message: str, code: Code, layer_id: str | None = None) -> None
Exporter
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
893 894 895 | |
qgis_version: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(qgis_version: str) -> None
Field
dataclass
Bases: BaseInterface
Transportable (serializable) form of a QGIS vector job_layer_definition fiel (attribute). It contains the information of the original data datatype and its translated versions and the editor widget one as well.
Attributes:
-
name(str) –Machine readable name of the field
-
type(str) –Original type as defined by data source (PostGIS, GPKG, etc.)
-
is_primary_key(bool) –if the field is considered to be primary key.
-
is_generated(bool) –if the value of the primary key is generated by the source on insert.
-
type_wfs(str | None) –Translated type for further usage. Based on the simple types of XSD spec.
-
type_oapif(str | None) –Translated type based on the types of the OpenAPI Spec
-
type_oapif_format(str | None) –Format of the above-mentioned type based on the OpenAPI Spec
-
alias(str | None) –Human readable name.
-
comment(str | None) –Field description.
-
nullable(bool) –If this field can be NULL or not.
-
length(int | None) –The limitation in length on the field value.
-
precision(int | None) –The precision of the field value (float types)
-
editor_widget_type(str | None) –The original type how it is defined in the QGIS form.
-
editor_widget_type_wfs(str | None) –The translated type based on the simple types of XSD spec.
-
editor_widget_type_oapif(str | None) –Translated type based on the types of the OpenAPI Spec
-
editor_widget_type_oapif_format(str | None) –Format of the above-mentioned type based on the OpenAPI Spec
-
editor_widget(EditorWidget | None) –The configuration of the editor widget. None if the widget type is not one of the exported ones.
-
constraints(FieldConstraints | None) –The constraints of the field. None for exports which did not contain constraints yet.
Source code in src/qgis_server_light/interface/exporter/extract.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | |
alias: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
comment: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
constraints: FieldConstraints | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
editor_widget: EditorWidget | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
editor_widget_type: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
editor_widget_type_oapif: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
editor_widget_type_oapif_format: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
editor_widget_type_wfs: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
is_generated: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
is_primary_key: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
length: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
nullable: bool = field(default=True, metadata={'type': 'Element'})
class-attribute
instance-attribute
precision: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
type: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
type_oapif: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
type_oapif_format: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
type_wfs: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(name: str, type: str, is_primary_key: bool = False, is_generated: bool = False, type_wfs: str | None = None, type_oapif: str | None = None, type_oapif_format: str | None = None, alias: str | None = None, comment: str | None = None, nullable: bool = True, length: int | None = None, precision: int | None = None, editor_widget_type: str | None = None, editor_widget_type_wfs: str | None = None, editor_widget_type_oapif: str | None = None, editor_widget_type_oapif_format: str | None = None, editor_widget: EditorWidget | None = None, constraints: FieldConstraints | None = None) -> None
FieldConstraints
dataclass
Bases: BaseInterface
The constraints of a field as defined in QGIS (provider or layer).
Attributes:
-
not_null(bool) –If the field must not be NULL.
-
unique(bool) –If the field value must be unique.
-
expression(str | None) –The QGIS expression the field value has to fulfill.
Source code in src/qgis_server_light/interface/exporter/extract.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 | |
expression: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
not_null: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
unique: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(not_null: bool = False, unique: bool = False, expression: str | None = None) -> None
GdalSource
dataclass
Bases: Source
Source code in src/qgis_server_light/interface/exporter/extract.py
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | |
layer_name: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
path: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
remote
property
to_qgis_decoded_uri: dict
property
vsi_prefix: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(path: str, layer_name: str | None = None, vsi_prefix: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
265 266 267 268 269 270 271 | |
Group
dataclass
Bases: AbstractDataset
Holds meta information of a group. It's position in the tree and its children can be derived by id matching.
Source code in src/qgis_server_light/interface/exporter/extract.py
712 713 714 715 716 717 | |
is_expanded: bool = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool, title: str, is_expanded: bool) -> None
LayerLike
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
16 17 18 19 20 | |
id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
is_checked: bool = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool) -> None
MetaData
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 | |
author: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
categories: list[str] | None = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
creationDateTime: str = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
language: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
links: list[str] | None = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
service: Service = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(service: Service, links: list[str] | None = list(), language: str | None = None, categories: list[str] | None = list(), creationDateTime: str = None, author: str | None = None) -> None
__post_init__()
Source code in src/qgis_server_light/interface/exporter/extract.py
777 778 779 | |
OgrSource
dataclass
Bases: GdalSource
Source code in src/qgis_server_light/interface/exporter/extract.py
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 | |
encoded_uri_separator: str
property
layer_id: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
subset: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
__init__(path: str, layer_name: str | None = None, vsi_prefix: str | None = None, layer_id: str | None = None, subset: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
288 289 290 291 292 293 294 295 296 297 | |
PostgresSource
dataclass
Bases: Source
Source code in src/qgis_server_light/interface/exporter/extract.py
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | |
check_primary_key_unicity: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
dbname: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
geometry_column: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
host: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
key: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
password: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
port: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
redacted_fields: set
property
remote
property
schema: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
service: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
sql: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
srid: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
ssl_mode_text: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
sslmode: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
table: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
type: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
username: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(key: str, table: str, schema: str | None = None, geometry_column: str | None = None, dbname: str | None = None, host: str | None = None, password: str | None = None, port: int | None = None, type: int | None = None, username: str | None = None, srid: str | None = None, sslmode: int | None = None, ssl_mode_text: str | None = None, service: str | None = None, check_primary_key_unicity: str | None = None, sql: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 | |
Project
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
782 783 784 785 | |
name: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
version: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(version: str, name: str) -> None
Range
dataclass
Bases: BaseInterface
Configuration of the QGIS Range editor widget.
Attributes:
-
minimum(float | None) –The smallest allowed value.
-
maximum(float | None) –The biggest allowed value.
-
step(float | None) –The step of the widget.
Source code in src/qgis_server_light/interface/exporter/extract.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
maximum: float | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
minimum: float | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
step: float | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(minimum: float | None = None, maximum: float | None = None, step: float | None = None) -> None
Raster
dataclass
Bases: DataSet
A real QGIS Raster job_layer_definition. That are usually all QgsRasterLayer
in opposition to QgsVectorTileLayer
which is not a real QgsRasterLayer.
Source code in src/qgis_server_light/interface/exporter/extract.py
670 671 672 673 674 675 676 | |
__init__(id: str, name: str, is_checked: bool, title: str, source: DataSource, driver: str, bbox: BBox | None = None, bbox_wgs84: BBox | None = None, crs: Crs | None = None, styles: list[Style] = list(), minimum_scale: float | None = None, maximum_scale: float | None = None, style_name: str = 'default', is_spatial: bool = True, is_background: bool = False) -> None
Relation
dataclass
Bases: BaseInterface
Transportable form of a QGIS project relation (QgsRelation). The layers are
exported as QGIS layer ids, they are not resolved.
Attributes:
-
id(str) –The id of the relation, referenced by
RelationReference.relation_id. -
name(str) –The human readable name of the relation.
-
referencing_layer_id(str) –The QGIS layer id of the referencing (child) layer.
-
referenced_layer_id(str) –The QGIS layer id of the referenced (parent) layer.
-
field_pairs(list[RelationFieldPair]) –The field pairs, more than one for composite keys.
-
strength(str) –The strength as named by QGIS,
AssociationorComposition.
Source code in src/qgis_server_light/interface/exporter/extract.py
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 | |
field_pairs: list[RelationFieldPair] = field(default_factory=list, 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
referenced_layer_id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
referencing_layer_id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
strength: str = field(default='Association', metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, referencing_layer_id: str, referenced_layer_id: str, field_pairs: list[RelationFieldPair] = list(), strength: str = 'Association') -> None
RelationFieldPair
dataclass
Bases: BaseInterface
One field pair of a QGIS project relation.
Attributes:
-
referencing_field(str) –The field of the referencing (child) layer.
-
referenced_field(str) –The field of the referenced (parent) layer.
Source code in src/qgis_server_light/interface/exporter/extract.py
853 854 855 856 857 858 859 860 861 862 863 864 | |
referenced_field: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
referencing_field: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(referencing_field: str, referenced_field: str) -> None
RelationReference
dataclass
Bases: BaseInterface
Configuration of the QGIS RelationReference editor widget.
Attributes:
-
relation_id(str) –The id of the project relation, see
Relation.id.
Source code in src/qgis_server_light/interface/exporter/extract.py
92 93 94 95 96 97 98 99 100 101 | |
relation_id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(relation_id: str) -> None
ResultWithMessages
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 | |
exporter: Exporter = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
has_errors: bool
property
messages: list[ExportMessage] = field(default_factory=list, kw_only=True, metadata={'type': 'Element'})
class-attribute
instance-attribute
project: Project = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(project: Project, exporter: Exporter, *, messages: list[ExportMessage] = list()) -> None
error(message: str, code: ExportMessage.Code, layer_id: str | None = None)
Source code in src/qgis_server_light/interface/exporter/extract.py
940 941 942 943 944 | |
warning(message: str, code: ExportMessage.Code, layer_id: str | None = None)
Source code in src/qgis_server_light/interface/exporter/extract.py
934 935 936 937 938 | |
Service
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 | |
contact_mail: str | None = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
contact_organization: str | None = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
contact_person: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
contact_phone: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
contact_position: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
fees: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
keyword_list: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
online_resource: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
resource_url: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
service_abstract: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
service_title: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(contact_organization: str | None, contact_mail: str | None, contact_person: str | None = None, contact_phone: str | None = None, contact_position: str | None = None, fees: str | None = None, keyword_list: str | None = None, online_resource: str | None = None, service_abstract: str | None = None, service_title: str | None = None, resource_url: str | None = None) -> None
Source
dataclass
Bases: BaseInterface, ABC
Source code in src/qgis_server_light/interface/exporter/extract.py
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | |
to_qgis_decoded_uri: dict
property
__init__() -> None
decide_remote(path: str) -> bool
staticmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
229 230 231 | |
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
239 240 241 242 243 | |
Tree
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 | |
members: list[TreeGroup] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
root
property
__init__(members: list[TreeGroup] = list()) -> None
find_by_id(identifier: str) -> TreeGroup | None
Source code in src/qgis_server_light/interface/exporter/extract.py
805 806 807 808 809 | |
find_by_name(name: str) -> TreeGroup | None
Source code in src/qgis_server_light/interface/exporter/extract.py
799 800 801 802 803 | |
TreeGroup
dataclass
Bases: TreeLayer
Source code in src/qgis_server_light/interface/exporter/extract.py
28 29 30 31 | |
children: list[str] = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
is_expanded: bool = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool, children: list[str], is_expanded: bool) -> None
TreeLayer
dataclass
Bases: LayerLike
Source code in src/qgis_server_light/interface/exporter/extract.py
23 24 25 | |
__init__(id: str, name: str, is_checked: bool) -> None
ValueMap
dataclass
Bases: BaseInterface
Configuration of the QGIS ValueMap editor widget.
Attributes:
-
entries(list[ValueMapEntry]) –The key / description pairs in the order defined in QGIS. The entry representing NULL is not part of it.
-
null_representation(str | None) –The description QGIS shows for NULL, if the widget defines one.
Source code in src/qgis_server_light/interface/exporter/extract.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
entries: list[ValueMapEntry] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
null_representation: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(entries: list[ValueMapEntry] = list(), null_representation: str | None = None) -> None
ValueMapEntry
dataclass
Bases: BaseInterface
One entry of a QGIS ValueMap editor widget.
Attributes:
-
key(str) –The value which is stored in the field.
-
description(str) –The human readable representation of the value.
Source code in src/qgis_server_light/interface/exporter/extract.py
34 35 36 37 38 39 40 41 42 43 44 45 | |
description: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
key: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(key: str, description: str) -> None
ValueRelation
dataclass
Bases: BaseInterface
Configuration of the QGIS ValueRelation editor widget. The referenced layer is
exported as QGIS layer id, it is not resolved.
Attributes:
-
layer_id(str) –The QGIS layer id of the layer the values are taken from.
-
key_field(str) –The field of the referenced layer which is stored.
-
value_field(str) –The field of the referenced layer which is shown.
-
filter_expression(str | None) –The QGIS expression to filter the referenced layer. It may use form context functions like
current_value(). -
allow_multi(bool) –If more than one value can be selected.
-
order_by_value(bool) –If the values are ordered by the value field instead of the key field.
Source code in src/qgis_server_light/interface/exporter/extract.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
allow_multi: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
filter_expression: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
key_field: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
layer_id: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
order_by_value: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
value_field: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(layer_id: str, key_field: str, value_field: str, filter_expression: str | None = None, allow_multi: bool = False, order_by_value: bool = False) -> None
Vector
dataclass
Bases: DataSet
A real QGIS Vector job_layer_definition. That are usually all QgsVectorLayer
in opposition to QgsVectorTileLayer
which is not a real QgsVectorLayer.
Source code in src/qgis_server_light/interface/exporter/extract.py
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | |
fields: list[Field] = field(default_factory=list, metadata={'type': 'Element'})
class-attribute
instance-attribute
geometry_type_simple: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
geometry_type_wkb: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(id: str, name: str, is_checked: bool, title: str, source: DataSource, driver: str, bbox: BBox | None = None, bbox_wgs84: BBox | None = None, crs: Crs | None = None, styles: list[Style] = list(), minimum_scale: float | None = None, maximum_scale: float | None = None, style_name: str = 'default', is_spatial: bool = True, is_background: bool = False, fields: list[Field] = list(), geometry_type_simple: str | None = None, geometry_type_wkb: str | None = None) -> None
get_field_by_name(name: str) -> Field | None
Source code in src/qgis_server_light/interface/exporter/extract.py
700 701 702 703 704 | |
VectorTileSource
dataclass
Bases: Source
Source code in src/qgis_server_light/interface/exporter/extract.py
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 | |
path: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
remote
property
style_url: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
type: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
url: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
zmax: int | None = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
zmin: int | None = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(type: str, zmin: int | None, zmax: int | None, url: str | None = None, path: str | None = None, style_url: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
598 599 600 601 602 603 604 605 606 607 | |
WcsSource
dataclass
Bases: Source
Source of a layer of the QGIS wcs provider. The attributes are the uri
parameters read by the provider (QgsWcsProvider::parseUri and
QgsWcsCapabilities in QGIS src/providers/wcs). Credentials (username,
password, authcfg) and http headers are intentionally not exported.
Source code in src/qgis_server_light/interface/exporter/extract.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 | |
bbox: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
cache: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
crs: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
format: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
identifier: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
ignore_axis_orientation: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
ignore_get_map_url: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
invert_axis_orientation: bool = field(default=False, metadata={'type': 'Element'})
class-attribute
instance-attribute
remote
property
time: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
url: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
version: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(url: str, identifier: str, crs: str | None = None, format: str | None = None, time: str | None = None, bbox: str | None = None, version: str | None = None, cache: str | None = None, ignore_get_map_url: bool = False, ignore_axis_orientation: bool = False, invert_axis_orientation: bool = False) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 | |
WfsSource
dataclass
Bases: BaseInterface
Source code in src/qgis_server_light/interface/exporter/extract.py
304 305 306 307 308 | |
__init__() -> None
WmsSource
dataclass
Bases: Source
Source code in src/qgis_server_light/interface/exporter/extract.py
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | |
contextual_wms_legend: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
crs: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
dpi_mode: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
feature_count: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
format: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
layers: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
remote
property
styles: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
url: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(crs: str, format: str, layers: str, url: str, dpi_mode: str | None = None, feature_count: int | None = None, contextual_wms_legend: str | None = None, styles: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
370 371 372 373 374 375 376 377 378 379 380 381 | |
WmtsSource
dataclass
Bases: WmsSource
Source code in src/qgis_server_light/interface/exporter/extract.py
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | |
tile_dimensions: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
tile_matrix_set: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
tile_pixel_ratio: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
to_qgis_decoded_uri: dict
property
__init__(crs: str, format: str, layers: str, url: str, dpi_mode: str | None = None, feature_count: int | None = None, contextual_wms_legend: str | None = None, styles: str | None = None, *, tile_matrix_set: str, tile_dimensions: str | None = None, tile_pixel_ratio: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 | |
XYZSource
dataclass
Bases: Source
Source code in src/qgis_server_light/interface/exporter/extract.py
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | |
remote
property
to_qgis_decoded_uri: dict
property
type: str | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
url: str = field(metadata={'type': 'Element'})
class-attribute
instance-attribute
zmax: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
zmin: int | None = field(default=None, metadata={'type': 'Element'})
class-attribute
instance-attribute
__init__(url: str, zmin: int | None = None, zmax: int | None = None, type: str | None = None) -> None
from_qgis_decoded_uri(decoded_uri: dict)
classmethod
Source code in src/qgis_server_light/interface/exporter/extract.py
328 329 330 331 332 333 334 335 | |