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 caad9897f496ecc1aa0df6fcf5f7028a680abc66
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/geometry/qgscompoundcurvev2.cpp
@@ -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.
You can’t perform that action at this time.