gws.plugin.qgis.caps

QGIS project xml parser.

Source code: gws.plugin.qgis.caps

Module Contents

class gws.plugin.qgis.caps.Caps(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

metadata: gws.Metadata
printTemplates: list[PrintTemplate]
projectBounds: gws.Bounds | None
projectCanvasBounds: gws.Bounds | None
projectCrs: gws.Crs
properties: dict
sourceLayers: list[gws.SourceLayer]
version: str
visibilityPresets: dict[str, list[str]]
gws.plugin.qgis.caps.parse(xml: str) Caps
gws.plugin.qgis.caps.parse_datasource(prov, text)
gws.plugin.qgis.caps.parse_element(root_el: gws.XmlElement) Caps
class gws.plugin.qgis.caps.PrintTemplate(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

attributes: dict
elements: list[PrintTemplateElement]
index: int
title: str
class gws.plugin.qgis.caps.PrintTemplateElement(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

attributes: dict
position: gws.UomPoint
size: gws.UomSize
type: str
uuid: str