Skip to content

Commit d926789

Browse files
committedJul 18, 2017
Improve dox
1 parent 792e6bd commit d926789

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
 

‎python/core/processing/qgsprocessingalgorithm.sip

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
777777
Maps the input WKB geometry type (``inputWkbType``) to the corresponding
778778
output WKB type generated by the algorithm. The default behavior is that the algorithm maintains
779779
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).
780782
:rtype: QgsWkbTypes.Type
781783
%End
782784

@@ -787,6 +789,9 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
787789
the same fields as are input.
788790
Algorithms which add, remove or modify existing fields should override this method and
789791
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).
790795
:rtype: QgsFields
791796
%End
792797

@@ -795,6 +800,9 @@ class QgsProcessingFeatureBasedAlgorithm : QgsProcessingAlgorithm
795800
Maps the input source coordinate reference system (``inputCrs``) to a corresponding
796801
output CRS generated by the algorithm. The default behavior is that the algorithm maintains
797802
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).
798806
:rtype: QgsCoordinateReferenceSystem
799807
%End
800808

‎src/core/processing/qgsprocessingalgorithm.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,8 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
752752
* Maps the input WKB geometry type (\a inputWkbType) to the corresponding
753753
* output WKB type generated by the algorithm. The default behavior is that the algorithm maintains
754754
* 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).
755757
*/
756758
virtual QgsWkbTypes::Type outputWkbType( QgsWkbTypes::Type inputWkbType ) const { return inputWkbType; }
757759

@@ -761,13 +763,19 @@ class CORE_EXPORT QgsProcessingFeatureBasedAlgorithm : public QgsProcessingAlgor
761763
* the same fields as are input.
762764
* Algorithms which add, remove or modify existing fields should override this method and
763765
* 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).
764769
*/
765770
virtual QgsFields outputFields( const QgsFields &inputFields ) const { return inputFields; }
766771

767772
/**
768773
* Maps the input source coordinate reference system (\a inputCrs) to a corresponding
769774
* output CRS generated by the algorithm. The default behavior is that the algorithm maintains
770775
* 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).
771779
*/
772780
virtual QgsCoordinateReferenceSystem outputCrs( const QgsCoordinateReferenceSystem &inputCrs ) const { return inputCrs; }
773781

0 commit comments

Comments
 (0)
Please sign in to comment.