Important

Traducerea este un efort al comunității, la care puteți să vă alăturați. În prezent, această pagină este tradusă 62.45%.

24.1.11. Metadata tools

24.1.11.1. Add history metadata

Added in 3.42

Adds a new history entry to the layer’s metadata.

Parametri

Etichetă

Nume

Tipul

Descriere

Strat

INPUT

[strat]

The input layer (vector, raster, etc.) to which the history entry will be added.

History entry

HISTORY

[șir]

The text to be appended as a new entry in the layer’s history metadata. This will be added to any existing history entries.

Rezultat

Etichetă

Nume

Tipul

Descriere

Rezultat

OUTPUT

[la fel ca intrarea]

The resulting layer with the updated history in its Metadata properties.

Cod Python

Algorithm ID: native:addhistorymetadata

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.

24.1.11.2. Copy Layer Metadata

Added in 3.42

Copies metadata from a source layer to a target layer. Any existing metadata in the target layer will be replaced with the metadata from the source layer. This includes all metadata fields, such as history, abstract, and other properties.

Parametri

Etichetă

Nume

Tipul

Descriere

Source layer

SOURCE

[strat]

The layer from which metadata will be copied.

Target layer

TARGET

[strat]

The layer to which metadata will be pasted. Any existing metadata in this layer will be replaced.

Save metadata as default

DEFAULT

[boolean]

Implicit: False

If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects.

Rezultat

Etichetă

Nume

Tipul

Descriere

Output layer

OUTPUT

[strat]

The target layer with the metadata replaced by the metadata from the source layer. This includes all metadata fields, such as history, abstract, and other properties.

Cod Python

Algorithm ID: native:copylayermetadata

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.

24.1.11.3. Export Layer Metadata

Added in 3.42

Exports the metadata of a layer to a QMD file.

Parametri

Etichetă

Nume

Tipul

Descriere

Strat

INPUT

[strat]

The layer whose metadata will be exported.

Rezultat

OUTPUT

[file]

Implicit: [Salvare într-un fișier temporar]

Specification of the output file. One of:

  • Salvare într-un Fișier Temporar

  • Salvare în Fișier…

Rezultat

Etichetă

Nume

Tipul

Descriere

Output file

OUTPUT

[file]

The .qmd file containing the exported metadata. This file can be used to import metadata into another layer.

Cod Python

Algorithm ID: native:exportlayermetadata

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.

24.1.11.4. Set Layer Metadata

Added in 3.42

Applies metadata to a layer from a .qmd file.

Parametri

Etichetă

Nume

Tipul

Descriere

Strat

INPUT

[strat]

The layer to which the metadata will be applied.

Metadata file

METADATA

[file]

The .qmd file containing the metadata to be applied.

Save metadata as default

DEFAULT

[boolean]

Implicit: False

If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects.

Rezultat

Etichetă

Nume

Tipul

Descriere

Output layer

OUTPUT

[la fel ca intrarea]

The input layer with the metadata replaced by the metadata from the .qmd file.

Cod Python

Algorithm ID: native:setlayermetadata

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.

24.1.11.5. Set Metadata Fields

Added in 3.42

Sets various metadata fields for a layer.

Parametri

Etichetă

Nume

Tipul

Descriere

Strat

INPUT

[strat]

The layer whose metadata fields will be updated

Identifier

Opţional

IDENTIFIER

[șir]

A unique identifier for the layer

Parent identifier

Opţional

PARENT_IDENTIFIER

[șir]

The identifier of the parent resource, if applicable

Title

Opţional

TITLE

[șir]

The title of the layer

Type

Opţional

TYPE

[șir]

The type of data stored in the layer

Language

Opţional

LANGUAGE

[șir]

The language of the metadata

Codificare

Opţional

ENCODING

[șir]

The character encoding used in the metadata

Abstract

Opţional

ABSTRACT

[șir]

A brief description or abstract of the layer

Coordinate reference system

Opţional

CRS

[crs]

The coordinate reference system of the layer

Fees

Opţional

FEES

[șir]

Information about any fees associated with accessing the layer

Ignore empty fields

IGNORE_EMPTY

[boolean]

Implicit: False

If checked, no update will be done to metadata fields that are not filled

Rezultat

Etichetă

Nume

Tipul

Descriere

Output layer

OUTPUT

[la fel ca intrarea]

The input layer with the specified metadata fields updated.

Cod Python

Algorithm ID: native:setmetadatafields

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.

24.1.11.6. Update Layer Metadata

Added in 3.42

Copies all non-empty metadata fields from a source layer to a target layer. Leaves empty input fields unchanged in the target.

Parametri

Etichetă

Nume

Tipul

Descriere

Source layer

SOURCE

[strat]

The layer from which non-empty metadata fields will be copied

Target layer

TARGET

[strat]

The layer to which non-empty metadata fields will be pasted. Empty fields in the source layer will not overwrite existing metadata in the target layer.

Rezultat

Etichetă

Nume

Tipul

Descriere

Target layer

OUTPUT

[strat]

The target layer with updated metadata.

Cod Python

Algorithm ID: native:updatelayermetadata

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID-ul algoritmului se afișează atunci când treceți peste algoritmul din caseta instrumentelor de procesare. Dicționarul parametrilor furnizează valorile și NUMELE parametrilor. Pentru detalii despre rularea algoritmilor de procesare din consola Python, parcurgeți Utilizarea algoritmilor de procesare din consolă.