Skip to content

Commit caad989

Browse files
committedApr 28, 2016
Add z/m values to new curves of compound curve
1 parent 381895f commit caad989

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/core/geometry/qgscompoundcurvev2.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,15 @@ void QgsCompoundCurveV2::addCurve( QgsCurveV2* c )
390390
{
391391
setZMTypeFromSubGeometry( c, QgsWKBTypes::CompoundCurve );
392392
}
393+
394+
if ( QgsWKBTypes::hasZ( mWkbType ) && !QgsWKBTypes::hasZ( c->wkbType() ) )
395+
{
396+
c->addZValue();
397+
}
398+
if ( QgsWKBTypes::hasM( mWkbType ) && !QgsWKBTypes::hasM( c->wkbType() ) )
399+
{
400+
c->addMValue();
401+
}
393402
clearCache();
394403
}
395404
}

0 commit comments

Comments
 (0)
Please sign in to comment.