Important
La traduction est le fruit d’un effort communautaire auquel vous pouvez vous joindre. Cette page est actuellement traduite à 66.82%.
24.1.11. Metadata tools
24.1.11.1. Add history metadata
Adds a new history entry to the layer’s metadata.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche |
|
[layer] |
The input layer (vector, raster, etc.) to which the history entry will be added. |
History entry |
|
[string] |
The text to be appended as a new entry in the layer’s history metadata. This will be added to any existing history entries. |
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Rendu |
|
[identique à l’entrée] |
The resulting layer with the updated history in its Metadata properties. |
Code Python
Algorithm ID: native:addhistorymetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.
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.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche source |
|
[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 |
|
[booléen] Par défaut : Faux |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche en sortie |
|
[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. |
Code Python
Algorithm ID: native:copylayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.
24.1.11.3. Export Layer Metadata
Exports the metadata of a layer to a QMD file.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche |
|
[layer] |
The layer whose metadata will be exported. |
Rendu |
|
[fichier] Par défaut : |
Specification of the output file. One of:
|
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Fichier de sortie |
|
[fichier] |
The |
Code Python
Algorithm ID: native:exportlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.
24.1.11.4. Set Layer Metadata
Applies metadata to a layer from a .qmd file.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche |
|
[layer] |
The layer to which the metadata will be applied. |
Metadata file |
|
[fichier] |
The |
Save metadata as default |
|
[booléen] Par défaut : Faux |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche en sortie |
|
[identique à l’entrée] |
The input layer with the metadata replaced by the metadata from the |
Code Python
Algorithm ID: native:setlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.
24.1.11.5. Set Metadata Fields
Sets various metadata fields for a layer.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche |
|
[layer] |
The layer whose metadata fields will be updated |
Identifier Optionnel |
|
[string] |
A unique identifier for the layer |
Parent identifier Optionnel |
|
[string] |
The identifier of the parent resource, if applicable |
Title Optionnel |
|
[string] |
The title of the layer |
Type Optionnel |
|
[string] |
The type of data stored in the layer |
Language Optionnel |
|
[string] |
The language of the metadata |
Codage Optionnel |
|
[string] |
The character encoding used in the metadata |
Abstract Optionnel |
|
[string] |
A brief description or abstract of the layer |
Coordinate reference system Optionnel |
|
[crs] |
The coordinate reference system of the layer |
Fees Optionnel |
|
[string] |
Information about any fees associated with accessing the layer |
Ignore empty fields |
|
[booléen] Par défaut : Faux |
If checked, no update will be done to metadata fields that are not filled |
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche en sortie |
|
[identique à l’entrée] |
The input layer with the specified metadata fields updated. |
Code Python
Algorithm ID: native:setmetadatafields
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.
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.
Paramètres
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Couche source |
|
[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. |
Les sorties
Etiquette |
Nom |
Type |
Description |
|---|---|---|---|
Target layer |
|
[layer] |
The target layer with updated metadata. |
Code Python
Algorithm ID: native:updatelayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
L”id de l’algorithme est affiché lors du survol du nom de l’algorithme dans la boîte à outils Traitements. Les nom et valeur de chaque paramètre sont fournis via un dictionnaire de paramètres. Voir Utiliser les algorithmes du module de traitements depuis la console Python pour plus de détails sur l’exécution d’algorithmes via la console Python.