qgserde - v0.3.1
    Preparing search index...

    Interface QgsVectorLayer

    Vector layer settings. Feature data and attribute values are not included.

    interface QgsVectorLayer {
        actions?: QgsAction[];
        attributes?: QgsMapLayerAttributes;
        attributeTable?: QgsAttributeTableConfig;
        auxiliaryLayer?: QgsAuxiliaryLayerAttributes;
        blendMode?: number;
        conditionalStyles?: QgsConditionalStyles;
        crs?: QgsCrs;
        customProperties?: QgsVariantMap;
        dataDependencies?: string[];
        defaultActions?: QgsDefaultActionAttributes[];
        diagram?: QgsDiagramRenderer;
        diagramSettings?: QgsDiagramSettings;
        displayExpression?: string;
        elevation?: QgsElevationProperties;
        expressionFields?: QgsExpressionFieldAttributes[];
        extent?: QgsRectangle;
        featureBlendMode?: number;
        fields: QgsField[];
        flags?: QgsLayerFlagsAttributes;
        form?: QgsEditForm;
        geometry?: string;
        geometryOptions?: QgsGeometryOptions;
        id: string;
        joins?: QgsVectorJoin[];
        labeling?: QgsVectorLabeling;
        labelsEnabled?: boolean;
        layerDependencies?: string[];
        legend?: QgsLayerLegendAttributes;
        legendTextOnSymbol?: QgsLegendTextOnSymbol;
        mapTip?: string;
        mapTipEnabled?: boolean;
        maxScale?: number;
        metadata?: QgsLayerMetadata;
        minScale?: number;
        name: string;
        notes?: string;
        opacity?: number;
        provider: string;
        providerEncoding?: string;
        readOnly?: boolean;
        referencedLayers?: QgsRelation[];
        referencingLayers?: QgsRelation[];
        renderer?: QgsVectorRenderer;
        renderer3d?: QgsRenderer3d;
        scaleBasedVisibility?: boolean;
        selection?: QgsSelectionAttributes;
        selectionColor?: QgsColorAttributes;
        selectionSymbol?: QgsSymbol;
        server?: QgsLayerServerProperties;
        source: string;
        storedExpressions?: QgsStoredExpressionAttributes[];
        styles?: QgsLayerStyles<
            Partial<
                Omit<
                    QgsVectorLayer,
                    | "type"
                    | "name"
                    | "crs"
                    | "extent"
                    | "provider"
                    | "id"
                    | "source"
                    | "extensions"
                    | "xmlType"
                    | "geometry"
                    | "wkbType"
                    | "styles"
                    | "providerEncoding"
                    | "unmodeled",
                >,
            >,
        >;
        temporal?: QgsTemporalProperties;
        timestamp?: string;
        type: "vector";
        unmodeled?: QgsUnmodeled;
        wgs84Extent?: QgsRectangle;
        widgets?: QgsFormWidget[];
        wkbType?: string;
    }

    Hierarchy (View Summary)

    Index
    actions?: QgsAction[]

    Feature actions.

    Other <maplayer> attributes, such as autoRefreshMode, styleCategories, or simplifyDrawingTol.

    attributeTable?: QgsAttributeTableConfig

    Attribute table settings.

    Auxiliary storage settings (<auxiliaryLayer>).

    blendMode?: number

    QPainter composition mode used to draw the layer, as a QGIS blend mode number.

    conditionalStyles?: QgsConditionalStyles

    Conditional formatting of the attribute table.

    crs?: QgsCrs

    Layer CRS. Assigning it does not transform geographic data.

    customProperties?: QgsVariantMap

    Plugin and application properties stored with the layer.

    dataDependencies?: string[]

    IDs of layers whose data this layer depends on.

    defaultActions?: QgsDefaultActionAttributes[]

    Default actions, each with key and value.

    Diagram renderer.

    diagramSettings?: QgsDiagramSettings

    Diagram placement settings.

    displayExpression?: string

    Display expression, used for feature titles (<previewExpression>).

    Elevation and profile settings (<elevation>).

    expressionFields?: QgsExpressionFieldAttributes[]

    Virtual fields, each with name, expression, type, and other attributes.

    extent?: QgsRectangle

    Layer extent in its CRS coordinate units.

    featureBlendMode?: number

    Blend mode between features of this layer, as a QGIS blend mode number.

    fields: QgsField[]

    Field display and input settings. Edits do not change the data source schema.

    Layer flags (<flags>): Identifiable, Removable, Searchable, and Private, as 1 or 0.

    Attribute form settings.

    geometry?: string

    QGIS geometry type name, such as Point.

    geometryOptions?: QgsGeometryOptions

    Geometry validation and precision settings.

    id: string

    Unique ID with at least 11 UTF-16 code units, fixed for the layer's life: tree, drawing-order, and other references use it. A layer with another ID is another layer. Shorter IDs are rejected on serialization, including when read from XML.

    joins?: QgsVectorJoin[]

    Joins to other layers.

    Label settings.

    labelsEnabled?: boolean

    Whether labels are drawn.

    layerDependencies?: string[]

    IDs of layers whose rendering this layer depends on.

    Legend settings (<legend>), such as type and showLabelLegend.

    legendTextOnSymbol?: QgsLegendTextOnSymbol

    Text drawn on legend symbols (<legend><text-on-symbol>), vector layers only.

    mapTip?: string

    Map tip HTML template.

    mapTipEnabled?: boolean

    Whether the map tip is enabled.

    maxScale?: number

    QGIS maxScale denominator. Applied when scaleBasedVisibility is enabled.

    metadata?: QgsLayerMetadata

    Descriptive layer metadata.

    minScale?: number

    QGIS minScale denominator. Applied when scaleBasedVisibility is enabled.

    name: string

    Layer name, also written to its tree references.

    notes?: string

    User notes (<userNotes value>), often HTML.

    opacity?: number

    Layer opacity: 0 is transparent and 1 is opaque in QGIS.

    provider: string

    QGIS provider identifier, such as ogr, gdal, memory, or wms.

    providerEncoding?: string

    Provider character encoding.

    readOnly?: boolean

    Whether the layer is read-only in QGIS.

    referencedLayers?: QgsRelation[]

    Relations to referenced layers, kept with the layer for portable styles.

    referencingLayers?: QgsRelation[]

    Relations from referencing layers, kept with the layer for portable styles.

    Renderer and symbols.

    renderer3d?: QgsRenderer3d

    3D renderer type and settings; nested 3D symbols stay in extension data.

    scaleBasedVisibility?: boolean

    Whether scale-based visibility limits are enabled.

    Selection settings (<selection>), such as mode.

    selectionColor?: QgsColorAttributes

    Layer-specific selection color: spec (such as rgb) and components from 0 to 1, or invalid.

    selectionSymbol?: QgsSymbol

    Symbol for selected features, when the selection uses a custom symbol.

    Publishing settings used by QGIS Server and legends.

    source: string

    Provider connection string or URI. Source availability is not checked and paths are not rewritten.

    storedExpressions?: QgsStoredExpressionAttributes[]

    Stored expressions, each with name, expression, and tag.

    styles?: QgsLayerStyles<
        Partial<
            Omit<
                QgsVectorLayer,
                | "type"
                | "name"
                | "crs"
                | "extent"
                | "provider"
                | "id"
                | "source"
                | "extensions"
                | "xmlType"
                | "geometry"
                | "wkbType"
                | "styles"
                | "providerEncoding"
                | "unmodeled",
            >,
        >,
    >

    Named style variants holding this layer type's settings.

    Time settings (<temporal>).

    timestamp?: string

    Data timestamp (<timestamp>) in ISO 8601, written by some providers.

    type: "vector"

    Discriminant for a vector layer.

    unmodeled?: QgsUnmodeled

    XML of this <maplayer> that the model does not cover; see QgsUnmodeled.

    wgs84Extent?: QgsRectangle

    Layer extent in WGS 84, as stored by QGIS.

    widgets?: QgsFormWidget[]

    Relation editor widget settings by relation.

    wkbType?: string

    QGIS WKB geometry type string.