We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f268ccc commit 148a906Copy full SHA for 148a906
src/core/geometry/qgscompoundcurve.cpp
@@ -407,10 +407,18 @@ void QgsCompoundCurve::addCurve( QgsCurve *c )
407
{
408
c->addZValue();
409
}
410
+ else if ( !QgsWkbTypes::hasZ( mWkbType ) && QgsWkbTypes::hasZ( c->wkbType() ) )
411
+ {
412
+ c->dropZValue();
413
+ }
414
if ( QgsWkbTypes::hasM( mWkbType ) && !QgsWkbTypes::hasM( c->wkbType() ) )
415
416
c->addMValue();
417
418
+ else if ( !QgsWkbTypes::hasM( mWkbType ) && QgsWkbTypes::hasM( c->wkbType() ) )
419
420
+ c->dropMValue();
421
422
clearCache();
423
424
0 commit comments