Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
10 additions
and
4 deletions.
-
+10
−4
src/analysis/interpolation/qgstininterpolator.cpp
|
@@ -294,14 +294,20 @@ 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() ); |
|
|
case ValueZ: |
|
|
break; |
|
|
} |
|
|
} |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.