AW: [Qgis-developer] patch for split feature issue
Marco Hugentobler
marco.hugentobler at karto.baug.ethz.ch
Mon Jun 9 13:14:31 EDT 2008
Applied in r8634.
Thanks!
Marco
Hi all,
i was post 2 week ago a bug in the trac
(http://trac.osgeo.org/qgis/ticket/1103) because some case the copy of
attributs have some issues.
The problem was in QgsVectorLayer::featuresInRectangle :
The problem is in this code
|for(changedIt = mChangedGeometries.begin(); changedIt !=
mChangedGeometries.end(); ++changedIt)
{
[...]
if(fetchAttributes)
{
QgsFeature tmpFeature;
mDataProvider->getFeatureAtId(changedIt.key(), tmpFeature, false,
mDataProvider->allAttributesList());
newFeature.setAttributeMap(tmpFeature.attributeMap());
}
features.push_back(newFeature);
}}
|
Because if the feature is in mAddedFeature the function |getFeatureAtId
|Return no attribut (because the feature isn't commited).||
||
Regards,
Adrien Gruson.
--
Dr. Marco Hugentobler
Institute of Cartography
ETH Zurich
Technical Advisor QGIS Project Steering Committee
More information about the Qgis-developer
mailing list