重要

翻訳は あなたが参加できる コミュニティの取り組みです。このページは現在 65.50% 翻訳されています。

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.

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[レイヤ]

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

History entry

HISTORY

[文字列]

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

出力

ラベル

名前

データ型

説明

出力

OUTPUT

[入力レイヤと同じ]

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

Python コード

Algorithm ID: native:addhistorymetadata

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。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.

パラメータ

ラベル

名前

データ型

説明

起点レイヤ

SOURCE

[レイヤ]

The layer from which metadata will be copied.

Target layer

TARGET

[レイヤ]

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

Save metadata as default

DEFAULT

[ブール値]

デフォルト: False

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

出力

ラベル

名前

データ型

説明

出力レイヤ

OUTPUT

[レイヤ]

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.

Python コード

Algorithm ID: native:copylayermetadata

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.11.3. Export Layer Metadata

Added in 3.42

Exports the metadata of a layer to a QMD file.

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[レイヤ]

The layer whose metadata will be exported.

出力

OUTPUT

[ファイル]

デフォルト: [一時ファイルに保存]

出力ファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

出力ファイル

OUTPUT

[ファイル]

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

Python コード

Algorithm ID: native:exportlayermetadata

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.11.4. Set Layer Metadata

Added in 3.42

Applies metadata to a layer from a .qmd file.

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[レイヤ]

The layer to which the metadata will be applied.

Metadata file

METADATA

[ファイル]

The .qmd file containing the metadata to be applied.

Save metadata as default

DEFAULT

[ブール値]

デフォルト: False

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

出力

ラベル

名前

データ型

説明

出力レイヤ

OUTPUT

[入力レイヤと同じ]

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

Python コード

Algorithm ID: native:setlayermetadata

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.11.5. Set Metadata Fields

Added in 3.42

Sets various metadata fields for a layer.

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[レイヤ]

The layer whose metadata fields will be updated

Identifier

オプション

IDENTIFIER

[文字列]

A unique identifier for the layer

Parent identifier

オプション

PARENT_IDENTIFIER

[文字列]

The identifier of the parent resource, if applicable

Title

オプション

TITLE

[文字列]

The title of the layer

Type

オプション

TYPE

[文字列]

The type of data stored in the layer

Language

オプション

LANGUAGE

[文字列]

The language of the metadata

文字コード

オプション

ENCODING

[文字列]

The character encoding used in the metadata

Abstract

オプション

ABSTRACT

[文字列]

A brief description or abstract of the layer

Coordinate reference system

オプション

CRS

[crs]

The coordinate reference system of the layer

Fees

オプション

FEES

[文字列]

Information about any fees associated with accessing the layer

Ignore empty fields

IGNORE_EMPTY

[ブール値]

デフォルト: False

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

出力

ラベル

名前

データ型

説明

出力レイヤ

OUTPUT

[入力レイヤと同じ]

The input layer with the specified metadata fields updated.

Python コード

Algorithm ID: native:setmetadatafields

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。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.

パラメータ

ラベル

名前

データ型

説明

起点レイヤ

SOURCE

[レイヤ]

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

Target layer

TARGET

[レイヤ]

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.

出力

ラベル

名前

データ型

説明

Target layer

OUTPUT

[レイヤ]

The target layer with updated metadata.

Python コード

Algorithm ID: native:updatelayermetadata

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

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。