.
Counts the number of points present in each feature of a polygon layer.
Polygons
[vector: polygon]Points
[vector: point]Count field name
[string]The name of the attribute table column containing the points number.
Default: NUMPOINTS
Result
[vector]processing.runalg('qgis:countpointsinpolygon', polygons, points, field, output)
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.
Polygons
[vector: polygon]Points
[vector: point]Weight field
[tablefield: any]Count field name
[string]Name of the column for the new weighted field.
Default: NUMPOINTS
Result
[vector]processing.runalg('qgis:countpointsinpolygonweighted', polygons, points, weight, field, output)
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.
Polygons
[vector: polygon]Points
[vector: point]Class field
[tablefield: any]Count field name
[string]Column name containing the count of unique values in the resulting polygons layer.
Default: NUMPOINTS
Result
[vector]processing.runalg('qgis:countuniquepointsinpolygon', polygons, points, classfield, field, output)
<put algorithm description here>
Input point layer
[vector: point]Input unique ID field
[tablefield: any]Target point layer
[vector: point]Target unique ID field
[tablefield: any]Output matrix type
[selection]<put parameter description here>
Options:
Default: 0
Use only the nearest (k) target points
[number]<put parameter description here>
Default: 0
Distance matrix
[table]processing.runalg('qgis:distancematrix', input_layer, input_field, target_layer, target_field, matrix_type, nearest_points, distance_matrix)
<put algorithm description here>
Source points layer
[vector: any]Destination hubs layer
[vector: any]Hub layer name attribute
[tablefield: any]Output shape type
[selection]<put parameter description here>
Options:
Default: 0
Measurement unit
[selection]<put parameter description here>
Options:
Default: 0
Output
[vector]processing.runalg('qgis:distancetonearesthub', points, hubs, field, geometry, unit, output)
<put algorithm description here>
Raster layer
[raster]Vector layer
[vector: line]Output layer
[vector]processing.runalg('qgis:generatepointspixelcentroidsalongline', input_raster, input_vector, output_layer)
<put algorithm description here>
Raster layer
[raster]Vector layer
[vector: polygon]Output layer
[vector]processing.runalg('qgis:generatepointspixelcentroidsinsidepolygons', input_raster, input_vector, output_layer)
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.
Hub point layer
[vector: any]Hub ID field
[tablefield: any]Spoke point layer
[vector: any]Spoke ID field
[tablefield: any]Output
[vector]processing.runalg('qgis:hublines', hubs, hub_field, spokes, spoke_field, output)
Calculates the mean of the coordinates of a layer starting from a field of the attribute table.
Input layer
[vector: any]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.
Result
[vector]processing.runalg('qgis:meancoordinates', points, weight, uid, output)
<put algorithm description here>
Points
[vector: point]Result
[html]Observed mean distance
[number]Expected mean distance
[number]Nearest neighbour index
[number]Number of points
[number]Z-Score
[number]processing.runalg('qgis:nearestneighbouranalysis', points, output)
<put algorithm description here>
Lines
[vector: line]Polygons
[vector: polygon]Lines length field name
[string]<put parameter description here>
Default: LENGTH
Lines count field name
[string]<put parameter description here>
Default: COUNT
Result
[vector]processing.runalg('qgis:sumlinelengths', lines, polygons, len_field, count_field, output)