Skip to content

Commit

Permalink
Merge pull request #40670 from vcloarec/fixTinInterpolation
Browse files Browse the repository at this point in the history
fix TIN interpolation #40668
  • Loading branch information
m-kuhn committed Dec 19, 2020
2 parents 677ccf5 + 30510e4 commit 14f6c9e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/analysis/interpolation/qgstininterpolator.cpp
Expand Up @@ -294,14 +294,21 @@ int QgsTinInterpolator::insertData( const QgsFeature &f, QgsInterpolator::ValueS
switch ( source )
{
case ValueAttribute:
point.setZ( attributeValue );
if ( point.is3D() )
point.setZ( attributeValue );
else
point.addZValue( attributeValue );
break;

case ValueZ:
case ValueM:
if ( point.is3D() )
point.setZ( point.m() );
else
point.addZValue( point.m() );
break;

case ValueM:
point.setZ( point.m() );
break;
case ValueZ:
break;
}
}
Expand Down

0 comments on commit 14f6c9e

Please sign in to comment.