November 2018
Beginner to intermediate
272 pages
5h 36m
English
From the Processing Toolbox, click on the Python button and select Create New Script..., as shown in the following screenshot:

In a blank script, copy the following code:
import processingfrom qgis.PyQt.QtCore import QCoreApplicationfrom qgis.core import QgsProcessingAlgorithm, QgsProcessing, QgsProcessingParameterFeatureSink,QgsProcessingParameterFeatureSourceclass testAlg(QgsProcessingAlgorithm): OUTPUT = 'OUTPUT' INPUT = 'INPUT' def tr(self, text): return QCoreApplication.translate('testalg', text) def createInstance(self): return type(self)() def group(self): return self.tr('Test') def ...Read now
Unlock full access