-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Digitizing: "Add Ring" tool doesn't consider all the overlapping features #23113
Comments
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Harrissou Santanna (@DelazJ)
|
Author Name: Harrissou Santanna (@DelazJ)
I think in both case, both features should contain holes.( The Split features would have split both features - selected or not) to Open a layer, toggle to edition and add two polygon features that overlap. I think in both case, both features should contain holes.( The Split features would have split both features - selected or not) |
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR Source:
|
Author Name: Giovanni Manghi (@gioman)
|
@DelazJ This bug no longer occurs on versions 3.16.14 and 3.22.1. (Tested on both Linux UBUNTU 20.04 and windows 10). |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
Tested on 3.22.1 Ubuntu 20.04 and still occurs (only a single polygon is pierced while both should (in both cases: selected or not) AddRingFirstOnly.mp4 |
Today, you can only add a ring on the current layer. I guess, one wants to add a ring also on selected features for the other layers. I'll try to rewrite it like this. |
Originally, the tool only worked for the active layer. This PR propose to iterate on all layers and add the ring on all layers. Fixes qgis#23113
The `QgsMapToolAddRing` adds a ring through the `addRing` method of `QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`. The bug described in qgis#23113 indicates that only one of the entities receives the ring addition when using the map tool. This is consistent with the documentation of the `addRing` methods. So, it is by design that the tool works like this. However, as stated in the ticket, it is best to add the ring to all entities. In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities. Fixes qgis#23113
The `QgsMapToolAddRing` adds a ring through the `addRing` method of `QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`. The bug described in qgis#23113 indicates that only one of the entities receives the ring addition when using the map tool. This is consistent with the documentation of the `addRing` methods. So, it is by design that the tool works like this. However, as stated in the ticket, it is best to add the ring to all entities. In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities. Fixes qgis#23113
The `QgsMapToolAddRing` adds a ring through the `addRing` method of `QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`. The bug described in qgis#23113 indicates that only one of the entities receives the ring addition when using the map tool. This is consistent with the documentation of the `addRing` methods. So, it is by design that the tool works like this. However, as stated in the ticket, it is best to add the ring to all entities. In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities. Fixes qgis#23113
The `QgsMapToolAddRing` adds a ring through the `addRing` method of `QgsVectorLayerEditUtils` called by this of `QgsVectorLayer`. The bug described in qgis#23113 indicates that only one of the entities receives the ring addition when using the map tool. This is consistent with the documentation of the `addRing` methods. So, it is by design that the tool works like this. However, as stated in the ticket, it is best to add the ring to all entities. In order to avoid an api break, I added a new addMultiRing method that adds the ring on all entities. Fixes qgis#23113
Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 15174
Affected QGIS version: 3.0.0
Redmine category:digitising
Open a layer, toggle to edition and add two polygon features that overlap.
select the "Add ring" tool and add a ring where the two features overlap.
Only the first feature contains a hole, not the second one.
If the features are selected beforehand, only the first feature is again pierced, ignoring the selection of the second feature.
I think in both case, both features should contain holes.( The Split features would have split both features - selected or not)
Related issue(s): #23114 (relates)
Redmine related issue(s): 15175
The text was updated successfully, but these errors were encountered: