Skip to content

Commit

Permalink
Tweak algorithm names, strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 30, 2018
1 parent 8372068 commit f119453
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Expand Up @@ -5924,7 +5924,7 @@ tests:
name: expected/create_parallel_lines.gml
type: vector

- algorithm: native:drapetoz
- algorithm: native:setzfromraster
name: Drape points to z
params:
BAND: 1
Expand All @@ -5941,7 +5941,7 @@ tests:
name: expected/drape_points.shp
type: vector

- algorithm: native:drapetom
- algorithm: native:setmfromraster
name: Drape points to m
params:
BAND: 1
Expand All @@ -5958,7 +5958,7 @@ tests:
name: expected/drape_points_m.shp
type: vector

- algorithm: native:drapetoz
- algorithm: native:setzfromraster
name: Drape lines to z
params:
BAND: 1
Expand All @@ -5975,7 +5975,7 @@ tests:
name: expected/drape_lines.shp
type: vector

- algorithm: native:drapetom
- algorithm: native:setmfromraster
name: Drape lines to m
params:
BAND: 1
Expand Down
14 changes: 7 additions & 7 deletions src/analysis/processing/qgsalgorithmdrape.cpp
Expand Up @@ -32,7 +32,7 @@ QString QgsDrapeAlgorithmBase::groupId() const

QString QgsDrapeAlgorithmBase::outputName() const
{
return QObject::tr( "Draped" );
return QObject::tr( "Updated" );
}

void QgsDrapeAlgorithmBase::initParameters( const QVariantMap & )
Expand Down Expand Up @@ -165,17 +165,17 @@ QgsFeatureList QgsDrapeAlgorithmBase::processFeature( const QgsFeature &feature,

QString QgsDrapeToZAlgorithm::name() const
{
return QStringLiteral( "drapetoz" );
return QStringLiteral( "setzfromraster" );
}

QString QgsDrapeToZAlgorithm::displayName() const
{
return QObject::tr( "Drape (Sample raster to z)" );
return QObject::tr( "Drape (set z-value from raster)" );
}

QStringList QgsDrapeToZAlgorithm::tags() const
{
return QObject::tr( "3d,vertex,vertices,elevation,sample" ).split( ',' );
return QObject::tr( "3d,vertex,vertices,elevation,height,sample,dem,update,feature" ).split( ',' );
}

QString QgsDrapeToZAlgorithm::shortHelpString() const
Expand Down Expand Up @@ -217,17 +217,17 @@ QgsPoint QgsDrapeToZAlgorithm::drapeVertex( const QgsPoint &p, double rasterVal

QString QgsDrapeToMAlgorithm::name() const
{
return QStringLiteral( "drapetom" );
return QStringLiteral( "setmfromraster" );
}

QString QgsDrapeToMAlgorithm::displayName() const
{
return QObject::tr( "Sample raster to m-values" );
return QObject::tr( "Set m-value from raster" );
}

QStringList QgsDrapeToMAlgorithm::tags() const
{
return QObject::tr( "vertex,vertices,sample,measure" ).split( ',' );
return QObject::tr( "drape,vertex,vertices,sample,dem,update,feature,measure" ).split( ',' );
}

QString QgsDrapeToMAlgorithm::shortHelpString() const
Expand Down

0 comments on commit f119453

Please sign in to comment.