-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Split multipolygon geometry fails #16271
Comments
Author Name: Giovanni Manghi (@gioman) The split works fine for me on a newly created DB and vector on qgis master. On the other hand if the vector was created with an autoincremental id (as qgis allows from the GUI), I get the following when trying committing the changes
more over if the user discard the changes part of the "splitted" polygons do disappear.
|
Author Name: Olivier Dalang (@olivierdalang) @giovanni Manghi : doesn't this deserve a specific issue thread ? (it's not clear if the two bugs are linked ) |
Author Name: Olivier Dalang (@olivierdalang) Ok here it is: #16493 |
Author Name: Giovanni Manghi (@gioman) The original issue is still true, and I raise the priority because the tool is broken for multi part geometries.
|
Author Name: Salvatore Larosa (@slarosa) I cannot reproduce with PostGIS layer ! (spatialite not tested yet) My testcase: http://lrssvt.ns0.it/img/multipolygon_postgis.sql |
Author Name: Giovanni Manghi (@gioman) Salvatore Larosa wrote:
it is still true, you must try split both parts of a multipart feature. Splitting of SL layers is broken see #16493
|
Author Name: Salvatore Larosa (@slarosa) Giovanni Manghi wrote:
ah, I only see the following message:
is that what do you refer to ? |
Author Name: Giovanni Manghi (@gioman)
yes, this message is about this ticket (splitting the parts of a multipart geometry). On the other hand when splitting a SL geometry you always get a message like
|
Author Name: Salvatore Larosa (@slarosa) well, but I still don't understand the reason why this issue is a blocker for PostGIS provider too. should not it be better to have two separate tickets ? |
Author Name: Giovanni Manghi (@gioman) Salvatore Larosa wrote:
because it happens also for postgis :)
it is the same on 1.8? if yes you can downgrade this, but I really think that all the (core) digitizing issue should be fixed for qgis 2.0
no it isn't: while maybe is not a common operation a user could be very well need to split at the same time two parts of the same feature. The issues are already in two different tickets: this one is about splitting the parts of a multipart feature: the resulting message is at least misleading, but the optimal solution would be obviously allow shuch operation. There is another ticket about the impossibility of splitting any SL feature, because of the error already reported. Cheers! |
Author Name: Jürgen Fischer (@jef-n) Should be provider independant and is reproduceable with a multipolygon shape here too.
|
Author Name: Jürgen Fischer (@jef-n) Jürgen Fischer wrote:
The cut edge is the line between the part of the split line between the two polygons. Apparently that's ok in this case. So the pure existance of cut edges isn't a clear indication that the @GEOSPolygonize()@ will produce something ugly. May be should just check the validity of resulting polygon instead. See alse http://lists.osgeo.org/pipermail/qgis-developer/2008-August/004549.html |
Author Name: Vincent Mora (@vmora) Here is a minimal test case for the issue. Note that the split of one of the polygons in a multipolygon works and produces 2 new features (both parts of the split polygon). Splitting at least two polygons of the polygons in a multipolygon produces the error.
|
Author Name: Vincent Mora (@vmora) Jürgen Fischer wrote:
I removed the check for cut edge and added a validity check as proposed. Works like a charm. Note that I tried to create an invalid geometry (cut edge) by releasing the split tool inside the interior ring of a polygon and wasn't able to cut it. |
Author Name: Jürgen Fischer (@jef-n) Fixed in changeset "6272274fb5c9df63eaf1c94defc25a7aa8290cf7".
|
Author Name: Vincent Mora (@vmora) Bug fixed thanks to fundings from Agence de l'Eau Adour-Garonne. |
Author Name: Csaba Sandor (Csaba Sandor)
Original Redmine Issue: 7244
Affected QGIS version: master
Redmine category:digitising
Assignee: Vincent Mora
Hi,
Splitting multipolygon spatialite geometries does not work as expected.
I try to split a geometry with 2 patches using edit/split features around the middle. (see attachment for cut line direction)
I get: @cut edges detected. Make sure the line splits features into multiple parts.@
If I convert the Multi to simple geometries it splits the geoms happily with the previous cutline.
It also works on geometries that are Multi in type but not Multi really.
With MultiLine geoms it also works although converts the split results to simple geoms which is still better than not doing it. :)
First tried on stable 1.8 then on 1.9 master.
Thanks for any views on this.
Csaba
Related issue(s): #16493 (relates)
Redmine related issue(s): 7550
The text was updated successfully, but these errors were encountered: