Skip to content
Permalink
Browse files

Update script algorithms for auto output creation

  • Loading branch information
nyalldawson committed Jul 11, 2017
1 parent 7bb1b7a commit 91d6ac95374518fd6cb2674a700fe42cf58688ef
@@ -40,7 +40,7 @@
QgsWkbTypes,
QgsProcessing,
QgsFields,
QgsProcessingParameterFeatureSource
QgsProcessingParameterFeatureSource,
QgsProcessingParameterFeatureSink)

from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm
@@ -35,7 +35,7 @@
QgsFeatureRequest,
QgsWkbTypes,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterFeatureSink
QgsProcessingParameterFeatureSink,
QgsSpatialIndex)
from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm

@@ -37,7 +37,7 @@
QgsWkbTypes,
QgsMessageLog,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterFeatureSink
QgsProcessingParameterFeatureSink,
QgsSpatialIndex)
from processing.algs.qgis.QgisAlgorithm import QgisAlgorithm
from processing.tools import vector
@@ -6,8 +6,6 @@
##Fields=field multiple Input
##Frequency=sink table

#outputs
##Frequency=output outputVector

from processing.tools.vector import TableWriter
from collections import defaultdict
@@ -7,9 +7,6 @@
##To_keep=number 1
##Biggest parts=sink polygon

#outputs

##Biggest parts=output outputVector

from qgis.core import QgsGeometry, QgsWkbTypes, QgsProcessingUtils
from operator import itemgetter
@@ -8,8 +8,6 @@
##value_field=field input
##N_unique_values=sink

#outputs
##N_unique_values=output outputVector

from qgis.PyQt.QtCore import QVariant
from qgis.core import QgsFeature, QgsField, QgsProcessingUtils
@@ -6,10 +6,6 @@
##INPUT_LAYER=source
##OUTPUT_LAYER=sink point

#outputs

##OUTPUT_LAYER=output outputVector

from qgis.core import QgsWkbTypes, QgsProcessingUtils

fields = INPUT_LAYER.fields()
@@ -6,10 +6,6 @@
##INPUT_LAYER=vector
##OUTPUT_LAYER=vectorDestination

#outputs

##OUTPUT_LAYER=output outputVector

import processing

result = processing.run("qgis:selectbyattribute",
@@ -6,10 +6,6 @@
##INPUT_LAYER=vector
##OUTPUT_LAYER=vectorDestination

#outputs

##OUTPUT_LAYER=output outputVector


import processing

0 comments on commit 91d6ac9

Please sign in to comment.
You can’t perform that action at this time.