Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add Z and M from input point
fix typo
  • Loading branch information
alexbruy committed Jan 16, 2020
1 parent 57e211d commit a25a7b8
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -50,7 +50,7 @@ QString QgsRectanglesOvalsDiamondsAlgorithm::groupId() const
QString QgsRectanglesOvalsDiamondsAlgorithm::shortHelpString() const
{
return QObject::tr( "Creates rectangle, oval or diamond-shaped polygons from the input point layer using "
"specified width, height and (optional) rotation values. Multipart inputs should be promoted"
"specified width, height and (optional) rotation values. Multipart inputs should be promoted "
"to singleparts first." );
}

Expand Down Expand Up @@ -216,11 +216,11 @@ QgsFeatureList QgsRectanglesOvalsDiamondsAlgorithm::processFeature( const QgsFea

if ( geometry.constGet()->is3D() )
{
poly->addZValue( 0 );
poly->addZValue( static_cast< const QgsPoint * >( geometry.constGet() )->z() );
}
if ( geometry.constGet()->isMeasure() )
{
poly->addMValue( 0 );
poly->addMValue( static_cast< const QgsPoint * >( geometry.constGet() )->m() );
}

outFeature.setGeometry( std::move( poly ) );
Expand Down

0 comments on commit a25a7b8

Please sign in to comment.