-
-
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 Features tool: lines are split also at every self-intersection #14070
Comments
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Richard Duivenvoorde (@rduivenvoorde) don't know if cfarmer is the right person to assign this issue to?? the split feature tool is part of @int QgsVectorLayer::splitFeatures( const QList& splitLine, bool topologicalEditing )@ (implemented via geos, not via ftools (for what I can see)) the actual bug is that the line is also split on it's self intersections |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman) seems fixed in master, reopen if necessary.
|
Author Name: Richard Duivenvoorde (@rduivenvoorde) Still not working for me. If I open the attached shapefile, containing 1 feature (open feature table to see that). then set layer in edit modus and then from the 'Advanced digitizing toolbar' use the 'split features' tool. If you then create a 'cut line' in the middle. I would think that the result would be 2 (two) lines. But if you open the attribute table, it will show you 15 features. Apperently the line is cut on every place where is intersects itself. To me this looks as not what you want. OR (Giovanni), do we have different settings? And do you have a setting which I do not have...
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Brett Russ (@icycle77) I'm a new QGIS user and thought I was nuts until I found this bug report. I open a single GPX track in QGIS, convert it to a shapefile, and try to split it into two sections. Before the split feature, the attribute table had 1 entry; after: 75 entries! This is impossible to deal with. Since this defect is so far down the priority list, is there a workaround we could try in cases where we need to split a self intersecting line? I really don't want to trace new lines over the original GPX/SHP for every subsection of the original. Thanks |
Author Name: Brett Russ (@icycle77) I am setting up Mac OS X 10.9.4 to do QGIS development. I could use a tip or two on where to look to try fixing this issue. Thanks in advance. |
Author Name: Pedro Venâncio (Pedro Venâncio) Hi, Please make a test with the two layers I am attaching. The layer trajeto_completo_2.shp has one single line and the layer percurso_pedestre_2.shp has 2 lines. Try to make a Split feature in each of the layers. Making split in percurso_pedestre_2.shp, I get 3 lines, as expected. Making split in trajeto_completo_2.shp, what happens is that the split is done at all points where the lines intersect. I thought I was with the problem of this ticket, but more strange is that does not always happen, and the layer in this example is the same, it was only made the split of trajeto_completo_2.shp in another software, resulting in percurso_pedestre_2.shp. Can anyone see any substantial difference between the two shapefiles that allows explain this different behavior? I think one way to fix this issue would be through "Enable topological editing" option of the Snapping Options. If this option was active, then it should do the split at every self-intersection, as a network topologically should not intersect. This approach fails only because there may be the two situations in the same layer, and therefore may not be very worthwhile. It is best to avoid it to happen, because to make the split at self-intersections will be enough to import the layer into GRASS, that will automatically enforce topology. In any case, this issue seems to me to have some priority.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Thomas Baumann (Thomas Baumann) The saga tool "split lines with lines" works fine to split lines even if they have self intersections. Perhaps one of the devs could have a look at the saga source code how they manage to split the lines correctly? http://www.saga-gis.org/saga_tool_doc/2.2.7/shapes_lines_6.html |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Pedro Venâncio (Pedro Venâncio) Pedro Venâncio wrote:
This is still true in QGIS 3.x |
Still an issue in QGIS v3.8 |
And still an issue in QGIS 3.15.0-Master... I have tested on temporary scratch layers and PostGIS layers... Both will split a linestring at every intersection, if splitting at any point. |
I've just spent debugging this problem whole day until I've found this open issue. Is there any data I can offer to help diagnose this problem? |
uff, same problem here on 3.15.0-Master. |
I have currently the same issue using it on my builder : https://gis.stackexchange.com/questions/393228/qgis-using-split-lines-with-lines-makes-unwanted-cut-on-self-overlapping-lines |
Still valid on QGIS 3.22.3. (Windows 10) |
Author Name: jcnotter - (jcnotter -)
Original Redmine Issue: 4087
Affected QGIS version: 3.7(master)
Redmine category:digitising
When you use this function to a location, it splits the polyline at each intersections on the polyline and you get a lot of polylines and not 2 as you want
Example : for separating the return track, you get many little tracks ...
Related issue(s): #29256 (duplicates)
Redmine related issue(s): 21439
The text was updated successfully, but these errors were encountered: