![]() |
pktools
2.6.3
Processing Kernel for remote sensing data
|
Public Member Functions | |
def | defineCharacteristics |
def | processAlgorithm |
Public Attributes | |
name | |
group | |
Static Public Attributes | |
string | OUTPUT_LAYER = "OUTPUT_LAYER" |
string | INPUT_LAYER = "INPUT_LAYER" |
This is an example algorithm that takes a vector layer and creates a new one just with just those features of the input layer that are selected. It is meant to be used as an example of how to create your own algorithms and explain methods and variables used to do it. An algorithm like this will be available in all elements, and there is not need for additional work. All processing algorithms should extend the GeoAlgorithm class.
Definition at line 41 of file ExampleAlgorithm.py.
def pktools.ExampleAlgorithm.ExampleAlgorithm.defineCharacteristics | ( | self | ) |
Here we define the inputs and output of the algorithm, along with some other properties
Definition at line 60 of file ExampleAlgorithm.py.
def pktools.ExampleAlgorithm.ExampleAlgorithm.processAlgorithm | ( | self, | |
progress | |||
) |
Here is where the processing itself takes place
Definition at line 78 of file ExampleAlgorithm.py.