mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
When adding ring to a geometry, add z or m dimensions to the
ring geometry if required (fix #7400, #7401)
This commit is contained in:
parent
a333fc8248
commit
957d82698d
@ -81,6 +81,13 @@ int QgsGeometryEditUtils::addRing( QgsAbstractGeometryV2* geom, QgsCurveV2* ring
|
||||
delete ring; return 4;
|
||||
}
|
||||
}
|
||||
|
||||
//make sure dimensionality of ring matches geometry
|
||||
if ( QgsWKBTypes::hasZ( geom->wkbType() ) )
|
||||
ring->addZValue( 0 );
|
||||
if ( QgsWKBTypes::hasM( geom->wkbType() ) )
|
||||
ring->addMValue( 0 );
|
||||
|
||||
( *polyIter )->addInteriorRing( ring );
|
||||
return 0; //success
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user