New processing algorithm - copying only certain features to a new shp file using QGIS

449
1
02-14-2020 12:29 PM
RafaelMichael
Occasional Contributor

I have a point layer (miejsowosci_lubelskie.shp) with cities. 

This layer has a "Pow" field containing the numerical value of the city area. The smallest city has an area of "9" and the largest "235".

The algorithm is to have parameters:
Input parameters:
WEKTOR - in this parameter the default value is to be layer "miejscowosci_lubelskie.shp"

POLE - in this parameter the default value is to be the "Pow" field from the layer "miejscowosci_lubelskie.shp"

WARTOSC - in this parameter the default value is 100

Output parameters:

WYNIK - the resulting vector layer with the default name "output_layer.shp"

The result of this algorithm is to be the output layer (output_layer.shp), which only has cities with an area less than or equal to 100.

I need help writing a processing script (algorithm) in .py format, so that I can open this algorithm in QGIS.

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

You could try the qgis stuff over at Geographic Information Systems Stack Exchange