Outdated version of the documentation. Find the latest one here.

` `

Shapes polygons

Convert lines to polygons

Kuvaus

Converts lines to polygons.

Parameters

Lines [vector: line]
Lines to convert.

Tulokset

Polygons [vector]
The resulting layer.

Console usage

processing.runalg('saga:convertlinestopolygons', lines, polygons)

See also

Convert polygon/line vertices to points

Kuvaus

Converts the line or polygon vertices into points.

Parameters

Shapes [vector: any]
Layer to process.

Tulokset

Points [vector]
The resulting layer.

Console usage

processing.runalg('saga:convertpolygonlineverticestopoints', shapes, points)

See also

Polygonin keskiöt

Kuvaus

Calculates the centroids of polygons.

Parameters

Polygons [vector: polygon]
Input layer.
Centroids for each part [boolean]

Determites whether centroids should be calculated for each part of multipart polygon or not.

Default: True

Tulokset

Centroids [vector]
The resulting layer.

Console usage

processing.runalg('saga:polygoncentroids', polygons, method, centroids)

See also

Polygon dissolve

Kuvaus

<put algorithm description here>

Parameters

Polygons [vector: polygon]
<put parameter description here>
1. Attribute [tablefield: any]

Optional.

<put parameter description here>

2. Attribute [tablefield: any]

Optional.

<put parameter description here>

3. Attribute [tablefield: any]

Optional.

<put parameter description here>

Dissolve... [selection]

<put parameter description here>

Options:

  • 0 — [0] polygons with same attribute value
  • 1 — [1] all polygons
  • 2 — [2] polygons with same attribute value (keep inner boundaries)
  • 3 — [3] all polygons (keep inner boundaries)

Default: 0

Tulokset

Dissolved Polygons [vector]
<put output description here>

Console usage

processing.runalg('saga:polygondissolve', polygons, field_1, field_2, field_3, dissolve, dissolved)

See also

Polygon-line intersection

Kuvaus

<put algorithm description here>

Parameters

Polygons [vector: polygon]
<put parameter description here>
Lines [vector: line]
<put parameter description here>

Tulokset

Intersection [vector]
<put output description here>

Console usage

processing.runalg('saga:polygonlineintersection', polygons, lines, intersect)

See also

Polygon parts to separate polygons

Kuvaus

<put algorithm description here>

Parameters

Polygons [vector: polygon]
<put parameter description here>
Ignore Lakes [boolean]

<put parameter description here>

Default: True

Tulokset

Polygon Parts [vector]
<put output description here>

Console usage

processing.runalg('saga:polygonpartstoseparatepolygons', polygons, lakes, parts)

See also

Polygon properties

Kuvaus

<put algorithm description here>

Parameters

Polygons [vector: polygon]
<put parameter description here>
Number of Parts [boolean]

<put parameter description here>

Default: True

Number of Vertices [boolean]

<put parameter description here>

Default: True

Perimeter [boolean]

<put parameter description here>

Default: True

Area [boolean]

<put parameter description here>

Default: True

Tulokset

Polygons with Property Attributes [vector]
<put output description here>

Console usage

processing.runalg('saga:polygonproperties', polygons, bparts, bpoints, blength, barea, output)

See also

Polygon shape indices

Kuvaus

Calculates spatial statistics for polygons. This includes:

  • area
  • perimeter
  • perimeter / area
  • perimeter / square root of the area
  • maximum distance
  • maximum distance / area
  • maximum distance / square root of the area
  • shape index

Parameters

Shapes [vector: polygon]
Layer to analyze.

Tulokset

Shape Index [vector]
The resulting layer.

Console usage

processing.runalg('saga:polygonshapeindices', shapes, index)

See also

Polygons to edges and nodes

Kuvaus

Extracts boundaries and nodes of polygons in separate files.

Parameters

Polygons [vector: polygon]
Input layer.

Tulokset

Edges [vector]
Resulting line layer with polygons boundaries.
Nodes [vector]
Resulting line layer with polygons nodes.

Console usage

processing.runalg('saga:polygonstoedgesandnodes', polygons, edges, nodes)

See also