Skip to content
Permalink
Browse files

add Z and M from input point

fix typo
  • Loading branch information
alexbruy committed Jan 16, 2020
1 parent 57e211d commit a25a7b82050c4db840f4917242e42c005a972872
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/analysis/processing/qgsalgorithmrectanglesovalsdiamonds.cpp
@@ -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." );
}

@@ -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 ) );

0 comments on commit a25a7b8

Please sign in to comment.
You can’t perform that action at this time.