mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Temporarily make QgsProcessingAlgorithm::run non pure-virtual (for travis)
This commit is contained in:
parent
3706d88045
commit
02b560e90d
@ -113,7 +113,7 @@ class QgsProcessingAlgorithm
|
||||
void setProvider( QgsProcessingProvider *provider );
|
||||
|
||||
virtual bool run( const QVariantMap ¶meters,
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback, QVariantMap &outputs /Out/ ) const = 0;
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback, QVariantMap &outputs /Out/ ) const;
|
||||
%Docstring
|
||||
Runs the algorithm using the specified ``parameters``. Algorithms should implement
|
||||
their custom processing logic here.
|
||||
|
||||
@ -78,7 +78,7 @@ bool QgsBufferAlgorithm::run( const QVariantMap ¶meters, QgsProcessingContex
|
||||
std::unique_ptr< QgsFeatureSink > writer( QgsProcessingUtils::createFeatureSink( dest, QString(), layer->fields(), QgsWkbTypes::Point, layer->crs(), context, outputLayer ) );
|
||||
|
||||
// fixed parameters
|
||||
bool dissolve = QgsProcessingParameters::parameterAsBool( parameters, QStringLiteral( "DISSOLVE" ), context );
|
||||
//bool dissolve = QgsProcessingParameters::parameterAsBool( parameters, QStringLiteral( "DISSOLVE" ), context );
|
||||
int segments = QgsProcessingParameters::parameterAsInt( parameters, QStringLiteral( "DISSOLVE" ), context );
|
||||
QgsGeometry::EndCapStyle endCapStyle = static_cast< QgsGeometry::EndCapStyle >( QgsProcessingParameters::parameterAsInt( parameters, QStringLiteral( "END_CAP_STYLE" ), context ) );
|
||||
QgsGeometry::JoinStyle joinStyle = static_cast< QgsGeometry::JoinStyle>( QgsProcessingParameters::parameterAsInt( parameters, QStringLiteral( "JOIN_STYLE" ), context ) );
|
||||
|
||||
@ -51,3 +51,8 @@ void QgsProcessingAlgorithm::setProvider( QgsProcessingProvider *provider )
|
||||
{
|
||||
mProvider = provider;
|
||||
}
|
||||
|
||||
bool QgsProcessingAlgorithm::run( const QVariantMap &, QgsProcessingContext &, QgsProcessingFeedback *, QVariantMap & ) const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ class CORE_EXPORT QgsProcessingAlgorithm
|
||||
* \returns true if algorithm run was successful, or false if run was unsuccessful.
|
||||
*/
|
||||
virtual bool run( const QVariantMap ¶meters,
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback, QVariantMap &outputs SIP_OUT ) const = 0;
|
||||
QgsProcessingContext &context, QgsProcessingFeedback *feedback, QVariantMap &outputs SIP_OUT ) const;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user