重要
翻译是一项社区工作:ref:你可以加入<translation_guidelines>。此页面目前翻译进度为 48.82%。
24.1.20. Vector coverage
24.1.20.1. Dissolve coverage
Operates on a coverage (represented as a set of polygon features with exactly matching edge geometry) to dissolve (union) the geometries. It provides a heavily optimized approach for unioning these features compared with the standard Dissolve tools.
参见
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[vector: polygon] |
Input polygon vector layer |
Dissolved |
|
[vector: polygon] Default: |
Specify the output vector layer. One of:
文件编码也可以在此更改。 |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Dissolved |
|
[vector: polygon] |
The output polygon vector layer with dissolved geometries. |
Python代码
Algorithm ID: native:coverageunion
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.20.2. Simplify coverage
Operates on a coverage (represented as a set of polygon features with exactly matching edge geometry) to apply a Visvalingam–Whyatt simplification to the edges, reducing complexity in proportion with the provided tolerance, while retaining a valid coverage (i.e. no edges will cross or touch after the simplification). Geometries will never be removed, but they may be simplified down to just a triangle. Also, some geometries (such as polygons which have too few non-repeated points) will be returned unchanged.
If the input dataset is not a valid coverage due to overlaps, it will still be simplified, but invalid topology such as crossing edges will still be invalid.
Requires version of GEOS >= 3.12
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[vector: polygon] |
Input polygon vector layer |
Tolerance |
|
[numeric: double] Default: 0.0 |
The maximum distance (in unit of choice) between two consecutive vertices to get merged. |
Preserve boundary |
|
[boolean] Default: False |
When enabled, the outside edges of the coverage will be preserved without simplification |
Simplified |
|
[vector: polygon] Default: |
Specify the output vector layer. One of:
文件编码也可以在此更改。 |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Simplified |
|
[vector: polygon] |
The output polygon vector layer, with a lower number of vertices. |
Python代码
Algorithm ID: native:coveragesimplify
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.20.3. Validate coverage
Analyzes a coverage (represented as a set of polygon features with exactly matching edge geometry) to find places where the assumption of exactly matching edges is not met. Invalidity includes polygons that overlap or that have gaps smaller than the specified gap width.
Requires version of GEOS >= 3.12
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
输入图层 |
|
[vector: polygon] |
Input polygon vector layer |
Gap width |
|
[numeric: double] Default: 0.0 |
The maximum width of gap to detect |
Invalid edges |
|
[vector: line] Default: |
Specify the output vector layer. One of:
文件编码也可以在此更改。 |
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Invalid edges |
|
[vector: line] |
The output line vector layer showing error edges for each invalid polygon. |
Validity result |
|
[boolean] |
Returns whether the coverage is valid or not. |
Python代码
Algorithm ID: native:coveragevalidate
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。