Skip to content
Permalink
Browse files
Add z/m values to new curves of compound curve
  • Loading branch information
mhugent committed Apr 28, 2016
1 parent 381895f commit caad989
Showing 1 changed file with 9 additions and 0 deletions.
@@ -390,6 +390,15 @@ void QgsCompoundCurveV2::addCurve( QgsCurveV2* c )
{
setZMTypeFromSubGeometry( c, QgsWKBTypes::CompoundCurve );
}

if ( QgsWKBTypes::hasZ( mWkbType ) && !QgsWKBTypes::hasZ( c->wkbType() ) )
{
c->addZValue();
}
if ( QgsWKBTypes::hasM( mWkbType ) && !QgsWKBTypes::hasM( c->wkbType() ) )
{
c->addMValue();
}
clearCache();
}
}

0 comments on commit caad989

Please sign in to comment.