|sorumluluk reddi güncelleme|

Vector analysis

Poligondaki noktaları say

Tanım

Counts the number of points present in each feature of a polygon layer.

Parametreler

Polygons [vector: polygon]
Polygons layer.
Points [vector: point]
Points layer.
Count field name [string]

The name of the attribute table column containing the points number.

Default: NUMPOINTS

Çıkışlar

Result [vector]
Resulting layer with the attribute table containing the new column of the points count.

Konsol kullanımı

processing.runalg('qgis:countpointsinpolygon', polygons, points, field, output)

Ayrıca bakınız

Count points in polygon (weighted)

Tanım

Counts the number of points in each feature of a polygon layer and calculates the mean of the selected field for each feature of the polygon layer. These values will be added to the attribute table of the resulting polygon layer.

Parametreler

Polygons [vector: polygon]
Polygons layer.
Points [vector: point]
Points layer.
Weight field [tablefield: any]
Weight field of the points attribute table.
Count field name [string]

Name of the column for the new weighted field.

Default: NUMPOINTS

Çıkışlar

Result [vector]
The resulting polygons layer.

Konsol kullanımı

processing.runalg('qgis:countpointsinpolygonweighted', polygons, points, weight, field, output)

Ayrıca bakınız

Count unique points in polygon

Tanım

Counts the number of unique values of a points in a polygons layer. Creates a new polygons layer with an extra column in the attribute table containing the count of unique values for each feature.

Parametreler

Polygons [vector: polygon]
Polygons layer.
Points [vector: point]
Points layer.
Class field [tablefield: any]
Points layer column name of the unique value chosen.
Count field name [string]

Column name containing the count of unique values in the resulting polygons layer.

Default: NUMPOINTS

Çıkışlar

Result [vector]
The resulting polygons layer.

Konsol kullanımı

processing.runalg('qgis:countuniquepointsinpolygon', polygons, points, classfield, field, output)

Ayrıca bakınız

Distance matrix

Tanım

<put algorithm description here>

Parametreler

Input point layer [vector: point]
<put parameter description here>
Input unique ID field [tablefield: any]
<put parameter description here>
Target point layer [vector: point]
<put parameter description here>
Target unique ID field [tablefield: any]
<put parameter description here>
Output matrix type [selection]

<put parameter description here>

Options:

  • 0 — Linear (N*k x 3) distance matrix
  • 1 — Standard (N x T) distance matrix
  • 2 — Summary distance matrix (mean, std. dev., min, max)

Default: 0

Use only the nearest (k) target points [number]

<put parameter description here>

Default: 0

Çıkışlar

Distance matrix [table]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:distancematrix', input_layer, input_field, target_layer, target_field, matrix_type, nearest_points, distance_matrix)

Ayrıca bakınız

En yakın merkeze olan uzaklık

Tanım

<put algorithm description here>

Parametreler

Source points layer [vector: any]
<put parameter description here>
Destination hubs layer [vector: any]
<put parameter description here>
Hub layer name attribute [tablefield: any]
<put parameter description here>
Output shape type [selection]

<put parameter description here>

Options:

  • 0 — Point
  • 1 — Line to hub

Default: 0

Measurement unit [selection]

<put parameter description here>

Options:

  • 0 — Meters
  • 1 — Feet
  • 2 — Miles
  • 3 — Kilometers
  • 4 — Layer units

Default: 0

Çıkışlar

Output [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:distancetonearesthub', points, hubs, field, geometry, unit, output)

Ayrıca bakınız

Çizgi boyunca nokta (piksel ağırlık merkezleri) üretme

Tanım

<put algorithm description here>

Parametreler

Raster layer [raster]
<put parameter description here>
Vector layer [vector: line]
<put parameter description here>

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:generatepointspixelcentroidsalongline', input_raster, input_vector, output_layer)

Ayrıca bakınız

Generate points (pixel centroids) inside polygons

Tanım

<put algorithm description here>

Parametreler

Raster layer [raster]
<put parameter description here>
Vector layer [vector: polygon]
<put parameter description here>

Çıkışlar

Output layer [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:generatepointspixelcentroidsinsidepolygons', input_raster, input_vector, output_layer)

Ayrıca bakınız

Bağlantı çizgileri

Tanım

Creates hub and spoke diagrams with lines drawn from points on the Spoke Point layer to matching points in the Hub Point layer. Determination of which hub goes with each point is based on a match between the Hub ID field on the hub points and the Spoke ID field on the spoke points.

Parametreler

Hub point layer [vector: any]
<put parameter description here>
Hub ID field [tablefield: any]
<put parameter description here>
Spoke point layer [vector: any]
<put parameter description here>
Spoke ID field [tablefield: any]
<put parameter description here>

Çıkışlar

Output [vector]

sonuç katmanı.

Konsol kullanımı

processing.runalg('qgis:hublines', hubs, hub_field, spokes, spoke_field, output)

Ayrıca bakınız

Mean coordinate(s)

Tanım

Calculates the mean of the coordinates of a layer starting from a field of the attribute table.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Weight field [tablefield: numeric]

Optional.

Field to use if you want to perform a weighted mean.

Unique ID field [tablefield: numeric]

Optional.

Unique field on which the calculation of the mean will be made.

Çıkışlar

Result [vector]
The resulting points layer.

Konsol kullanımı

processing.runalg('qgis:meancoordinates', points, weight, uid, output)

Ayrıca bakınız

Nearest neighbour analysis

Tanım

<put algorithm description here>

Parametreler

Points [vector: point]
<put parameter description here>

Çıkışlar

Result [html]
<put output description here>
Observed mean distance [number]
<put output description here>
Expected mean distance [number]
<put output description here>
Nearest neighbour index [number]
<put output description here>
Number of points [number]
<put output description here>
Z-Score [number]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:nearestneighbouranalysis', points, output)

Ayrıca bakınız

Sum line lengths

Tanım

<put algorithm description here>

Parametreler

Lines [vector: line]
<put parameter description here>
Polygons [vector: polygon]
<put parameter description here>
Lines length field name [string]

<put parameter description here>

Default: LENGTH

Lines count field name [string]

<put parameter description here>

Default: COUNT

Çıkışlar

Result [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:sumlinelengths', lines, polygons, len_field, count_field, output)

Ayrıca bakınız