Skip to content

Commit

Permalink
[needs-docs] Review the Dissolve algorithm description
Browse files Browse the repository at this point in the history
* The current description focuses on geometries and assumes only line or vector layers can be dissolved
* Rename label to look more meaningful and closer to GDAL Dissolve's
  • Loading branch information
DelazJ authored and nyalldawson committed Sep 28, 2018
1 parent b478ee7 commit 0396abf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/analysis/processing/qgsalgorithmdissolve.cpp
Expand Up @@ -190,17 +190,17 @@ QString QgsDissolveAlgorithm::groupId() const
void QgsDissolveAlgorithm::initAlgorithm( const QVariantMap & )
{
addParameter( new QgsProcessingParameterFeatureSource( QStringLiteral( "INPUT" ), QObject::tr( "Input layer" ) ) );
addParameter( new QgsProcessingParameterField( QStringLiteral( "FIELD" ), QObject::tr( "Unique ID fields" ), QVariant(),
addParameter( new QgsProcessingParameterField( QStringLiteral( "FIELD" ), QObject::tr( "Dissolve field(s)" ), QVariant(),
QStringLiteral( "INPUT" ), QgsProcessingParameterField::Any, true, true ) );

addParameter( new QgsProcessingParameterFeatureSink( QStringLiteral( "OUTPUT" ), QObject::tr( "Dissolved" ) ) );
}

QString QgsDissolveAlgorithm::shortHelpString() const
{
return QObject::tr( "This algorithm takes a polygon or line vector layer and combines their geometries into new geometries. One or more attributes can "
"be specified to dissolve only geometries belonging to the same class (having the same value for the specified attributes), alternatively "
"all geometries can be dissolved.\n\n"
return QObject::tr( "This algorithm takes a vector layer and combines their features into new features. One or more attributes can "
"be specified to dissolve features belonging to the same class (having the same value for the specified attributes), alternatively "
"all features can be dissolved in a single one.\n\n"
"All output geometries will be converted to multi geometries. "
"In case the input is a polygon layer, common boundaries of adjacent polygons being dissolved will get erased." );
}
Expand Down

0 comments on commit 0396abf

Please sign in to comment.