Bug report #13359
merge two polygons deletes one of them
|Affected QGIS version:||2.6.1||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21412|
When trying to merge two features, one of them is simpçy deleted.
The attached file shows the problem. Basically you select the feature 0 and any of its neighboors and try to merge.
The neighboor disappears.
#2 Updated by Jos Ferraro about 5 years ago
Sorry, I made a mistake.
The feature that makes things dissapears is the third one(FID 2).
In effect it seems that the order of the features is important. The feature that is deleted is always the one with higher ID.
So the problem is: when trying to merge feature with FID 2 and feature with FID 0, the feature FID 2 is deleted instead os being merged.
In the shapefile whece I cut this one the order of the features was inverted and it was therefore the big one that dissapeared.
About deleting feature FID 2 : That's exactly what I wanted to do, but I wanted to merge with it's neighboors so not to have a gap.
Once again, sorry for the mistake
BTW, tested with 2.8.3 and the problem is NOT solved
#3 Updated by Jukka Rahkonen about 5 years ago
Geometry FID=2 is
It has a topology error "Hole lies outside shell". QGIS Check geometry validity tool reports it in another words "2,ring 1 of polygon 0 not in exterior ring
2,Geometry has 1 errors."
This is not a QGIS bug unless you can reproduce it with valid geometries.