Skip to content

crs

crs

input

QslJobInfoCrs dataclass

Bases: QslJobInfoParameter

Source code in src/qgis_server_light/interface/job/crs/input.py
22
23
24
@dataclass
class QslJobInfoCrs(QslJobInfoParameter):
    job: QslJobParameterCrs = field(metadata={"type": "Element"})
job: QslJobParameterCrs = field(metadata={'type': 'Element'}) class-attribute instance-attribute
__init__(id: str, type: str, job: QslJobParameterCrs, execution_mode: ExecutionMode = ExecutionMode.SYNC) -> None

QslJobParameterCrs dataclass

Bases: QslJobParameter

Resolves crs identifiers into the full crs information as QGIS knows it. This way consuming applications get all identifiers and the axis order without own crs knowledge.

Attributes:

  • identifiers (list[str]) –

    The crs identifiers to resolve, e.g. EPSG:4326, URN or URI notation.

Source code in src/qgis_server_light/interface/job/crs/input.py
 9
10
11
12
13
14
15
16
17
18
19
@dataclass
class QslJobParameterCrs(QslJobParameter):
    """Resolves crs identifiers into the full crs information as QGIS knows it. This way
    consuming applications get all identifiers and the axis order without own crs
    knowledge.

    Attributes:
        identifiers: The crs identifiers to resolve, e.g. `EPSG:4326`, URN or URI notation.
    """

    identifiers: list[str] = field(metadata={"type": "Element"})
identifiers: list[str] = field(metadata={'type': 'Element'}) class-attribute instance-attribute
__init__(identifiers: list[str]) -> None

output

CrsCollection dataclass

Bases: BaseInterface

Holds the resolved crs. The order in the list has to be not changed, so that consuming applications can map the response to the passed identifiers.

Attributes:

  • crs (list[Crs]) –

    The resolved crs in the order of the passed identifiers.

Source code in src/qgis_server_light/interface/job/crs/output.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
@dataclass(repr=False)
class CrsCollection(BaseInterface):
    """Holds the resolved crs. The order in the list has to be not changed, so that
    consuming applications can map the response to the passed identifiers.

    Attributes:
        crs: The resolved crs in the order of the passed identifiers.
    """

    crs: list[Crs] = field(
        default_factory=list,
        metadata={"type": "Element"},
    )
crs: list[Crs] = field(default_factory=list, metadata={'type': 'Element'}) class-attribute instance-attribute
__init__(crs: list[Crs] = list()) -> None