File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -777,6 +777,8 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
777
777
Maps the input WKB geometry type (``inputWkbType``) to the corresponding
778
778
output WKB type generated by the algorithm. The default behavior is that the algorithm maintains
779
779
the same WKB type.
780
+ This is called once by the base class when creating the output sink for the algorithm (i.e. it is
781
+ not called once per feature processed).
780
782
:rtype: QgsWkbTypes.Type
781
783
%End
782
784
@@ -787,6 +789,9 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
787
789
the same fields as are input.
788
790
Algorithms which add, remove or modify existing fields should override this method and
789
791
implement logic here to indicate which fields are output by the algorithm.
792
+
793
+ This is called once by the base class when creating the output sink for the algorithm (i.e. it is
794
+ not called once per feature processed).
790
795
:rtype: QgsFields
791
796
%End
792
797
@@ -795,6 +800,9 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
795
800
Maps the input source coordinate reference system (``inputCrs``) to a corresponding
796
801
output CRS generated by the algorithm. The default behavior is that the algorithm maintains
797
802
the same CRS as the input source.
803
+
804
+ This is called once by the base class when creating the output sink for the algorithm (i.e. it is
805
+ not called once per feature processed).
798
806
:rtype: QgsCoordinateReferenceSystem
799
807
%End
800
808
Original file line number Diff line number Diff line change @@ -752,6 +752,8 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
752
752
* Maps the input WKB geometry type (\a inputWkbType) to the corresponding
753
753
* output WKB type generated by the algorithm. The default behavior is that the algorithm maintains
754
754
* the same WKB type.
755
+ * This is called once by the base class when creating the output sink for the algorithm (i.e. it is
756
+ * not called once per feature processed).
755
757
*/
756
758
virtual QgsWkbTypes::Type outputWkbType ( QgsWkbTypes::Type inputWkbType ) const { return inputWkbType; }
757
759
@@ -761,13 +763,19 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
761
763
* the same fields as are input.
762
764
* Algorithms which add, remove or modify existing fields should override this method and
763
765
* implement logic here to indicate which fields are output by the algorithm.
766
+ *
767
+ * This is called once by the base class when creating the output sink for the algorithm (i.e. it is
768
+ * not called once per feature processed).
764
769
*/
765
770
virtual QgsFields outputFields ( const QgsFields &inputFields ) const { return inputFields; }
766
771
767
772
/* *
768
773
* Maps the input source coordinate reference system (\a inputCrs) to a corresponding
769
774
* output CRS generated by the algorithm. The default behavior is that the algorithm maintains
770
775
* the same CRS as the input source.
776
+ *
777
+ * This is called once by the base class when creating the output sink for the algorithm (i.e. it is
778
+ * not called once per feature processed).
771
779
*/
772
780
virtual QgsCoordinateReferenceSystem outputCrs ( const QgsCoordinateReferenceSystem &inputCrs ) const { return inputCrs; }
773
781
You can’t perform that action at this time.
0 commit comments