Wichtig
Übersetzen ist eine Gemeinschaftsleistung Sie können mitmachen. Diese Seite ist aktuell zu 59.64% übersetzt.
24.1.11. Metadata tools
24.1.11.1. Add history metadata
Adds a new history entry to the layer’s metadata.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Layer |
|
[layer] |
The input layer (vector, raster, etc.) to which the history entry will be added. |
History entry |
|
[Text] |
The text to be appended as a new entry in the layer’s history metadata. This will be added to any existing history entries. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Ergebnis |
|
[wie Eingabe] |
The resulting layer with the updated history in its Metadata properties. |
Pythoncode
Algorithm ID: native:addhistorymetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.
24.1.11.2. Copy Layer Metadata
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.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Source layer |
|
[layer] |
The layer from which metadata will be copied. |
Target layer |
|
[layer] |
The layer to which metadata will be pasted. Any existing metadata in this layer will be replaced. |
Save metadata as default |
|
[Boolean] Standard: falsch |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Ausgabelayer |
|
[layer] |
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. |
Pythoncode
Algorithm ID: native:copylayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.
24.1.11.3. Export Layer Metadata
Exports the metadata of a layer to a QMD file.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Layer |
|
[layer] |
The layer whose metadata will be exported. |
Ergebnis |
|
[Datei] Standard: |
Specification of the output file. One of:
|
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Output file |
|
[Datei] |
The |
Pythoncode
Algorithm ID: native:exportlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.
24.1.11.4. Set Layer Metadata
Applies metadata to a layer from a .qmd file.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Layer |
|
[layer] |
The layer to which the metadata will be applied. |
Metadata file |
|
[Datei] |
The |
Save metadata as default |
|
[Boolean] Standard: falsch |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Ausgabelayer |
|
[wie Eingabe] |
The input layer with the metadata replaced by the metadata from the |
Pythoncode
Algorithm ID: native:setlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.
24.1.11.5. Set Metadata Fields
Sets various metadata fields for a layer.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Layer |
|
[layer] |
The layer whose metadata fields will be updated |
Identifier Optional |
|
[Text] |
A unique identifier for the layer |
Parent identifier Optional |
|
[Text] |
The identifier of the parent resource, if applicable |
Title Optional |
|
[Text] |
The title of the layer |
Type Optional |
|
[Text] |
The type of data stored in the layer |
Language Optional |
|
[Text] |
The language of the metadata |
Encoding Optional |
|
[Text] |
The character encoding used in the metadata |
Abstract Optional |
|
[Text] |
A brief description or abstract of the layer |
Coordinate reference system Optional |
|
[KBS] |
The coordinate reference system of the layer |
Fees Optional |
|
[Text] |
Information about any fees associated with accessing the layer |
Ignore empty fields |
|
[Boolean] Standard: falsch |
If checked, no update will be done to metadata fields that are not filled |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Ausgabelayer |
|
[wie Eingabe] |
The input layer with the specified metadata fields updated. |
Pythoncode
Algorithm ID: native:setmetadatafields
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.
24.1.11.6. Update Layer Metadata
Copies all non-empty metadata fields from a source layer to a target layer. Leaves empty input fields unchanged in the target.
Parameter
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Source layer |
|
[layer] |
The layer from which non-empty metadata fields will be copied |
Target layer |
|
[layer] |
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. |
Ausgaben
Bezeichnung |
Name |
Typ |
Beschreibung |
|---|---|---|---|
Target layer |
|
[layer] |
The target layer with updated metadata. |
Pythoncode
Algorithm ID: native:updatelayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
Die Algorithmus-Kennung wird angezeigt, wenn Sie den Mauszeiger über den Algorithmus in der Verarbeitungs-Werkzeugkiste bewegen. Die Parameter-Liste (parameter_dictionary) enthält die Namen und Werte der Parameter. Siehe Verarbeitungs-Algorithmen von der Konsole aus verwenden für Details zur Ausführung von Verarbeitungs-Algorithmen über die Python-Konsole.