Importante
La traducción es un esfuerzo comunitario puede unirse. Esta página está actualmente traducida en |progreso de traducción|.
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.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Layer |
|
[layer] |
The input layer (vector, raster, etc.) to which the history entry will be added. |
History entry |
|
[cadena de texto] |
The text to be appended as a new entry in the layer’s history metadata. This will be added to any existing history entries. |
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Salida |
|
[la misma que la entrada] |
The resulting layer with the updated history in its Metadata properties. |
Código Python
Algorithm ID: native:addhistorymetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.
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.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Capa de origen |
|
[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 |
|
[booleano] Predeterminado: Falso |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Capa de salida |
|
[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. |
Código Python
Algorithm ID: native:copylayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.
24.1.11.3. Export Layer Metadata
Added in 3.42
Exports the metadata of a layer to a QMD file.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Layer |
|
[layer] |
The layer whose metadata will be exported. |
Salida |
|
[archivo] Predeterinado: |
Especificación del archivo de salida. Uno de:
|
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Archivo de salida |
|
[archivo] |
The |
Código Python
Algorithm ID: native:exportlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.
24.1.11.4. Set Layer Metadata
Added in 3.42
Applies metadata to a layer from a .qmd file.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Layer |
|
[layer] |
The layer to which the metadata will be applied. |
Metadata file |
|
[archivo] |
The |
Save metadata as default |
|
[booleano] Predeterminado: Falso |
If checked, the metadata information will be saved with the layer, hence available by default in subsequent projects. |
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Capa de salida |
|
[la misma que la entrada] |
The input layer with the metadata replaced by the metadata from the |
Código Python
Algorithm ID: native:setlayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.
24.1.11.5. Set Metadata Fields
Added in 3.42
Sets various metadata fields for a layer.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Layer |
|
[layer] |
The layer whose metadata fields will be updated |
Identifier Opcional |
|
[cadena de texto] |
A unique identifier for the layer |
Parent identifier Opcional |
|
[cadena de texto] |
The identifier of the parent resource, if applicable |
Title Opcional |
|
[cadena de texto] |
The title of the layer |
Type Opcional |
|
[cadena de texto] |
The type of data stored in the layer |
Language Opcional |
|
[cadena de texto] |
The language of the metadata |
Codificación Opcional |
|
[cadena de texto] |
The character encoding used in the metadata |
Abstract Opcional |
|
[cadena de texto] |
A brief description or abstract of the layer |
Coordinate reference system Opcional |
|
[src] |
The coordinate reference system of the layer |
Fees Opcional |
|
[cadena de texto] |
Information about any fees associated with accessing the layer |
Ignore empty fields |
|
[booleano] Predeterminado: Falso |
If checked, no update will be done to metadata fields that are not filled |
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Capa de salida |
|
[la misma que la entrada] |
The input layer with the specified metadata fields updated. |
Código Python
Algorithm ID: native:setmetadatafields
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.
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.
Parametros
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Capa de origen |
|
[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. |
Salidas
Etiqueta |
Nombre |
Tipo |
Descripción |
|---|---|---|---|
Target layer |
|
[layer] |
The target layer with updated metadata. |
Código Python
Algorithm ID: native:updatelayermetadata
import processing
processing.run("algorithm_id", {parameter_dictionary})
El algoritmo id se muestra cuando pasa el cursor sobre el algoritmo en la caja de herramientas de procesos. El diccionario de parámetros proporciona los NOMBRES y valores de los parámetros. Consulte Utilizar algoritmos de procesamiento desde la consola para obtener detalles sobre cómo ejecutar algoritmos de procesamiento desde la consola de Python.