@@ -864,6 +864,31 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
864
864
865
865
QgsProcessingAlgorithm::Flags flags () const override ;
866
866
867
+ /* *
868
+ * Processes an individual input \a feature from the source. Algorithms should implement their
869
+ * logic in this method for performing the algorithm's operation (e.g. replacing the feature's
870
+ * geometry with the centroid of the original feature geometry for a 'centroid' type
871
+ * algorithm).
872
+ *
873
+ * Implementations should return a list containing the modified feature. Returning an empty an list
874
+ * will indicate that this feature should be 'skipped', and will not be added to the algorithm's output.
875
+ * Subclasses can use this approach to filter the incoming features as desired.
876
+ *
877
+ * Additionally, multiple features can be returned for a single input feature. Each returned feature
878
+ * will be added to the algorithm's output. This allows for "explode" type algorithms where a single
879
+ * input feature results in multiple output features.
880
+ *
881
+ * The provided \a feedback object can be used to push messages to the log and for giving feedback
882
+ * to users. Note that handling of progress reports and algorithm cancelation is handled by
883
+ * the base class and subclasses do not need to reimplement this logic.
884
+ *
885
+ * Algorithms can throw a QgsProcessingException if a fatal error occurred which should
886
+ * prevent the algorithm execution from continuing. This can be annoying for users though as it
887
+ * can break valid model execution - so use with extreme caution, and consider using
888
+ * \a feedback to instead report non-fatal processing failures for features instead.
889
+ */
890
+ virtual QgsFeatureList processFeature ( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) SIP_THROW ( QgsProcessingException ) = 0 SIP_VIRTUALERRORHANDLER ( processing_exception_handler );
891
+
867
892
protected:
868
893
869
894
void initAlgorithm ( const QVariantMap &configuration = QVariantMap () ) override ;
@@ -937,30 +962,6 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
937
962
*/
938
963
QgsCoordinateReferenceSystem sourceCrs () const ;
939
964
940
- /* *
941
- * Processes an individual input \a feature from the source. Algorithms should implement their
942
- * logic in this method for performing the algorithm's operation (e.g. replacing the feature's
943
- * geometry with the centroid of the original feature geometry for a 'centroid' type
944
- * algorithm).
945
- *
946
- * Implementations should return a list containing the modified feature. Returning an empty an list
947
- * will indicate that this feature should be 'skipped', and will not be added to the algorithm's output.
948
- * Subclasses can use this approach to filter the incoming features as desired.
949
- *
950
- * Additionally, multiple features can be returned for a single input feature. Each returned feature
951
- * will be added to the algorithm's output. This allows for "explode" type algorithms where a single
952
- * input feature results in multiple output features.
953
- *
954
- * The provided \a feedback object can be used to push messages to the log and for giving feedback
955
- * to users. Note that handling of progress reports and algorithm cancelation is handled by
956
- * the base class and subclasses do not need to reimplement this logic.
957
- *
958
- * Algorithms can throw a QgsProcessingException if a fatal error occurred which should
959
- * prevent the algorithm execution from continuing. This can be annoying for users though as it
960
- * can break valid model execution - so use with extreme caution, and consider using
961
- * \a feedback to instead report non-fatal processing failures for features instead.
962
- */
963
- virtual QgsFeatureList processFeature ( const QgsFeature &feature, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) SIP_THROW ( QgsProcessingException ) = 0 SIP_VIRTUALERRORHANDLER ( processing_exception_handler );
964
965
965
966
QVariantMap processAlgorithm ( const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback ) override SIP_THROW ( QgsProcessingException );
966
967
0 commit comments