重要

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

24.1.6. Fix Geometry

24.1.6.1. Add missing vertices along borders

Added in 3.42

Adds the missing vertices along polygons borders, based on an error layer from the Missing vertices along borders algorithm.

../../../../_images/fix_geometry_missing_vertices.png

図 24.16 Fixing missing vertices along polygon borders.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Field of part index

PART_IDX

[tablefield: integer]

Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Border vertices fixed layer

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing border vertices

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing border vertices

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx

  • gc_ringidx

  • gc_vertidx

  • gc_errorx: the x coordinate of the missing vertex.

  • gc_errory: the y coordinate of the missing vertex.

  • gc_error

  • report: a text field describing the fix applied.

  • error_fixed: a boolean field indicating whether the error was fixed.

  • UNIQUE_ID field: the unique ID of the input feature that has a missing vertex.

Border vertices fixed layer

OUTPUT

[ベクタ:ポリゴン]

Output layer with the geometry fix applied to the input features. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometrymissingvertex

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

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

24.1.6.2. Convert to strictly multipart

Added in 3.42

Converts multipart geometries that consists of only one geometry into singlepart geometries, based on an error layer from the Strictly multipart algorithm. Layer geometry type will not be changed and will remain multipart.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ライン、ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Strictly-multipart layer

OUTPUT

[ベクタ: 入力と同じ]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing multipart

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the centroids of the fixed geometries. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing multipart

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx

  • gc_ringidx

  • gc_vertidx

  • gc_errorx: the x coordinate of the centroid of the multipart geometry that has only one part.

  • gc_errory: the y coordinate of the centroid of the multipart geometry that has only one part.

  • gc_error

  • report: a text field describing the fix applied.

  • error_fixed: a boolean field indicating whether the error was fixed.

  • UNIQUE_ID field: the unique ID of the input feature that is multipart but has only one part.

Strictly-multipart layer

OUTPUT

[ベクタ: 入力と同じ]

Output layer with the geometry fix applied to the input features. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometrymultipart

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

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

24.1.6.3. Delete duplicated vertices

Added in 3.42

Deletes duplicated vertices from the input geometries, based on errors reported by the Duplicated vertices algorithm.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ライン、ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Field of part index

PART_IDX

[tablefield: integer]

Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Fixed duplicate vertices layer

OUTPUT

[ベクタ: 入力と同じ]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing duplicate vertices

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing duplicate vertices

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx: the index of the feature's geometry part containing the duplicate vertex.

  • gc_ringidx: the index of the feature's geometry ring containing the duplicate vertex.

  • gc_vertidx: the index of the duplicate vertex in the feature's geometry ring.

  • gc_errorx: the x coordinate of the duplicate vertex.

  • gc_errory: the y coordinate of the duplicate vertex.

  • gc_error

  • report: a text field describing the fix applied.

  • error_fixed: a boolean field indicating whether the error was fixed.

  • UNIQUE_ID field: the unique ID of the input feature that has duplicate vertices.

Fixed duplicate vertices layer

OUTPUT

[ベクタ: 入力と同じ]

Output layer with the geometry fix applied to the input features. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryduplicatenodes

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

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

24.1.6.4. 地物を削除する

Added in 3.42

Deletes error features based on an error layer from some check geometry algorithms, such as:

../../../../_images/fix_geometry_deletefeatures.png

図 24.17 Fixing errors from the "Features inside polygon" algorithm check.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Cleaned layer

OUTPUT

[ベクタ: 入力と同じ]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from deleting features

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

出力

ラベル

名前

データ型

説明

Report layer from deleting features

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx

  • gc_ringidx

  • gc_vertidx

  • gc_errorx: the x coordinate of the centroid of the erroneous geometry.

  • gc_errory: the y coordinate of the centroid of the erroneous geometry.

  • gc_error: the index of the feature where the error belongs.

  • report: a text field describing the fix applied.

  • error_fixed: a boolean field indicating whether the error was fixed.

  • UNIQUE_ID field: the unique ID of the input feature with the error.

Cleaned layer

OUTPUT

[ベクタ: 入力と同じ]

Output layer with features removed based on detected errors. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometrydeletefeatures

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

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

24.1.6.5. Delete overlaps

Added in 3.42

Deletes overlapping areas based on an error layer from the Overlaps algorithm.

../../../../_images/fix_geometry_deleteoverlaps.png

図 24.18 Deleting overlapping areas.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Field of overlap feature unique identifier

OVERLAP_FEATURE_UNIQUE_IDX

[テーブルのフィールド:任意]

Field storing unique values for the overlapping feature identification in input layer, as set in the check algorithm.

Field of error value

ERROR_VALUE_ID

[テーブルのフィールド:任意]

Field storing the error value for each feature, as set in the check algorithm.

No-overlap layer

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing overlaps

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing overlaps

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_errorx: the x coordinate of the centroid of the overlapping area.

  • gc_errory: the y coordinate of the centroid of the overlapping area.

  • gc_error: the area of the overlapping geometry.

  • UNIQUE_ID field: the unique ID of the unique ID of an overlapped input feature.

  • gc_overlap_feature_{unique_id}: the UNIQUE_ID field value for the other overlapping feature.

  • report: a text field describing the fix applied or justifying the failure. Possible values are:

    • Remove overlapping area from neighboring polygon with shortest shared edge

    • Error is obsolete

  • error_fixed: a boolean field indicating whether the error was fixed.

No-overlap layer

OUTPUT

[ベクタ:ポリゴン]

Output layer with input features edited. Overlapping areas reported as errors are removed. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryoverlap

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

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

24.1.6.6. Delete small angles

Added in 3.42

Deletes vertices based on an error layer from the Small angles algorithm. When deletion of a vertex results in a duplicate vertex (when a spike vertex is deleted), the duplicate vertex is deleted to keep a single vertex and preserve topology.

注意

This algorithm removes the vertex at the reported small angles, generating new segments that may form a new small angle.

../../../../_images/fix_geometry_angle.png

図 24.19 Fixing reported errors on a line feature for angles lower than 15°.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ライン、ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm

Field of part index

PART_IDX

[tablefield: integer]

Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Small angle fixed layer

OUTPUT

[ベクタ: 入力と同じ]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing small angles

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing small angles

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx: the index of the feature's geometry part containing the small angle.

  • gc_ringidx: the index of the feature's geometry ring containing the small angle.

  • gc_vertidx: the index of the vertex with the small angle in the feature's geometry ring.

  • gc_errorx: the x coordinate of the vertex with the small angle.

  • gc_errory: the y coordinate of the vertex with the small angle.

  • gc_error: the error angle value.

  • UNIQUE_ID field: the unique ID of the input feature with the small angle.

  • report: a text field describing the fix applied or justifying the failure.

  • error_fixed: a boolean field indicating whether the error was fixed.

Small angle fixed layer

OUTPUT

[入力レイヤと同じ]

Output layer with the geometry fix applied to the input features. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryangle

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

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

24.1.6.7. Fill gaps

Added in 3.42

Fills the gaps based on a gap and neighbors layer from the Small gaps algorithm. Three different fixing methods are available.

../../../../_images/fix_geometry_gap.png

図 24.20 Fixing gap between polygon features using the Add to largest neighbouring area method.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Neighbors layer

NEIGHBORS

[ベクタ: テーブル]

Relational table with the unique ID of the gap and its neighbors in input layer, generated by the check algorithm.

Gaps layer

GAPS

[ベクタ:ポリゴン]

Polygon layer with the gaps geometries, generated by the check algorithm.

方法

METHOD

[列挙型]

デフォルト: 0

Method to apply to the gap fixing. Possible values are:

  • 0 --- Add to longest shared edge: adds the gap to the neighboring feature with the longest shared edge.

  • 1 --- Create new feature: creates a new feature for each gap.

  • 2 --- Add to largest neighbouring area: adds the gap to the neighboring feature with the largest area.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Default: gc_errorid

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Field of error id

ERROR_ID_IDX

[テーブルのフィールド:任意]

Field storing the error ID for each gap, as output by the check algorithm.

Gaps-filled layer

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing gaps

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing gaps

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx

  • gc_ringidx

  • gc_vertidx

  • gc_errorx: the x coordinate of the centroid of the gap.

  • gc_errory: the y coordinate of the centroid of the gap.

  • gc_error: the area of the gap.

  • gc_errorid: the ID of the gap.

  • report: a text field mentioning the method used to fix the gap.

  • error_fixed: a boolean field indicating whether the error was fixed.

Gaps-filled layer

OUTPUT

[ベクタ:ポリゴン]

Output layer of polygons without gaps. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometrygap

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

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

24.1.6.8. Fill holes

Added in 3.42

Deletes holes in polygon geometries based on an error layer from the Holes algorithm.

../../../../_images/fix_geometry_holes.png

図 24.21 Deleting holes in a polygon feature.

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ライン、ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm

Field of part index

PART_IDX

[tablefield: integer] Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Holes-filled layer

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing holes

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing holes

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx: the index of the feature's geometry part containing the hole.

  • gc_ringidx: the index of the feature's geometry ring containing the hole.

  • gc_vertidx

  • gc_errorx: the x coordinate of the centroid of the hole.

  • gc_errory: the y coordinate of the centroid of the hole.

  • gc_error

  • UNIQUE_ID field: the unique ID of the input feature that has a hole.

  • report: a text field describing the fix applied or justifying the failure.

  • error_fixed: a boolean field indicating whether the error was fixed.

Holes-filled layer

OUTPUT

[ベクタ:ポリゴン]

Output layer of polygons without holes. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryhole

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

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

24.1.6.9. Fix small polygons

Added in 3.42

Merges neighboring polygons according to the chosen method, based on an error layer from the Small polygons or Sliver polygons algorithm.

../../../../_images/fix_geometry_area.png

図 24.22 Before and after fixing small polygons (method: merge with neighboring polygon with largest area).

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm.

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm.

方法

METHOD

[列挙型]

デフォルト: 0

Method to apply to the small polygon geometries:

  • 0 --- Merge with neighboring polygon with longest shared edge: merges the small polygon geometry with the neighboring polygon that has the longest shared edge.

  • 1 --- Merge with neighboring polygon with largest area: merges the small polygon geometry with the neighboring polygon that has the largest area.

  • 2 --- Merge with neighboring polygon with identical attribute value, if any, or leave as is: merges the small polygon geometry with a neighboring polygon that has the same attribute value, if such a polygon exists.

Field to consider when merging polygons with the identical attribute method

オプション

MERGE_ATTRIBUTE

[テーブルのフィールド:任意]

Field in the input layer to consider when merging polygons with the identical attribute method.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm.

Field of part index

PART_IDX

[tablefield: integer] Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Small polygons merged layer

OUTPUT

[ベクタ:ポリゴン]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from merging small polygons

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from merging small polygons

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx

  • gc_ringidx

  • gc_vertidx

  • gc_errorx: the x coordinate of the centroid of the small polygon.

  • gc_errory: the y coordinate of the centroid of the small polygon.

  • gc_error: the area of the small polygon.

  • UNIQUE_ID field: the unique ID of the input feature that is a small polygon.

  • report: a text field describing the fix applied or justifying the failure.

  • error_fixed: a boolean field indicating whether the error was fixed.

Small polygons merged layer

OUTPUT

[ベクタ:ポリゴン]

Output layer of polygons with small polygons merged according to the chosen method. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryarea

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

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

24.1.6.10. Split self-intersecting geometries

Added in 3.42

Splits self-intersecting geometries based on an error layer from the Self-intersections algorithm.

注釈

This algorithm detects invalid polygon geometries (self-intersections). To ensure these invalid features are not filtered out before processing, open optionsAdvanced options next to the Input layer and set Invalid feature filtering to Do not Filter (Better Performance).

../../../../_images/fix_geometry_splitselfintersectinggeometries.png

図 24.23 Fixing self-intersection using various methods: as multi-part (middle), and multiple single-part geometries (right).

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:ライン、ポリゴン]

Layer with the geometries to fix, same as input in the check algorithm

Error layer

ERRORS

[ベクタ:ポイント]

Point layer with the errors location, generated by the check algorithm

方法

METHOD

[列挙型]

Method to apply to the self-intersecting geometries:

  • 0 -- Split feature into a multi-part feature: splits the self-intersecting geometry into multiple parts stored in a single multipart feature.

  • 1 -- Split feature into multiple single-part features: splits the self-intersecting geometry into multiple parts, each part stored in a separate feature.

Field of original feature unique identifier

UNIQUE_ID

[テーブルのフィールド:任意]

Field storing unique values for feature identification in input layer, as set in the check algorithm

Field of part index

PART_IDX

[tablefield: integer]

Default: gc_partidx

Field storing the erroneous feature's geometry part number.

Field of ring index

RING_IDX

[tablefield: integer]

Default: gc_ringidx

Field storing the erroneous feature's geometry ring number.

Field of vertex index

VERTEX_IDX

[tablefield: integer]

Default: gc_vertidx

Field storing the erroneous feature's geometry vertex number.

Field of segment 1

SEGMENT_1

[tablefield: integer]

Default: gc_segment_1

Field storing the number of the first segment involved in the erroneous intersection.

Field of segment 2

SEGMENT_2

[tablefield: integer]

Default: gc_segment_2

Field storing the number of the second segment involved in the erroneous intersection.

Self-intersections fixed layer

OUTPUT

[ベクタ: 入力と同じ]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing fixed features. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

Report layer from fixing self-intersections

REPORT

[ベクタ:ポイント]

デフォルト: [一時レイヤを作成]

Specification of the output layer containing the fixes location. One of:

  • 一時レイヤを作成( TEMPORARY_OUTPUT

  • ファイルに保存...

  • GeoPackageに保存...

  • データベーステーブルに保存...

ここでファイルの文字コードを変更することもできます。

詳細パラメータ

ラベル

名前

データ型

説明

許容範囲

TOLERANCE

[数値: Integer]

デフォルト: 8

Numerical precision of geometric operations, given as an integer n, meaning that two vertices less than 10-n apart (in map units) are considered to be merged.

出力

ラベル

名前

データ型

説明

Report layer from fixing self-intersections

REPORT

[ベクタ:ポイント]

Output point layer representing the error locations and fix applied. The output layer contains the following fields:

  • gc_layerid: the ID of the input layer.

  • gc_layername: the name of the input layer.

  • gc_partidx: the index of the feature's geometry part where the self-intersection occurs.

  • gc_ringidx: the index of the feature's geometry ring where the self-intersection occurs.

  • gc_vertidx

  • gc_errorx: the x coordinate of the self-intersection.

  • gc_errory: the y coordinate of the self-intersection.

  • gc_error

  • gc_segment_1: the index of the first segment involved in the intersection.

  • gc_segment_2: the index of the second segment involved in the intersection.

  • UNIQUE_ID field: the unique ID of the self-intersecting input feature.

  • report: a text field describing the fix applied.

  • error_fixed: a boolean field indicating whether the error was fixed.

Self-intersections fixed layer

OUTPUT

[ベクタ: 入力と同じ]

Output layer with the geometry fix applied to the input features. The layer contains the same fields as in the input layer.

Python コード

Algorithm ID: native:fixgeometryselfintersection

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

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