Re: [Qgis-user] Line dissolve

2021-09-02 Thread Nicolas Cadieux
Hi Harrissou, Turn out I had a float point error problem with the distance matrix tool that indicated I had no disconnected lines in my network.  The distance matrix tool reports 0 distance when the distance is around or below the 10th decimal point.   I have fixed the problem and dissolve

Re: [Qgis-user] Line dissolve

2021-09-01 Thread Nicolas Cadieux
Thanks! Very informative and useful. I will have a look. Nicolas Cadieux https://gitlab.com/njacadieux > Le 1 sept. 2021 à 03:33, Andrea Giudiceandrea a écrit > : > > Nicolas Cadieux Mon, 30 Aug 2021 03:56:22 -0700 >> This post explains what I would like. It offer a QGIS 2 script that

Re: [Qgis-user] Line dissolve

2021-09-01 Thread Andrea Giudiceandrea
Nicolas Cadieux Mon, 30 Aug 2021 03:56:22 -0700 This post explains what I would like. It offer a QGIS 2 script that could help. https://gis.stackexchange.com/questions/198317/join-merge-lines-that-touch-and-intersect-in-qgis Hi Nicolas, I've also successfully ported that script to QGSI 3 as

Re: [Qgis-user] Line dissolve

2021-08-31 Thread Nicolas Cadieux
Hi, I will look at the wkt output but it seems that with lines, dissolve will just create a single huge multiline. The multi part to single part will just split it back up. I suspect that dissolve only deals with common border in polygones and not line ends. Will test tomorrow to figure out

Re: [Qgis-user] Line dissolve

2021-08-31 Thread DelazJ
Hi, > That does not work with lines unfortunately. I tried multiple times with different combinations. It works with polygons when common borders need to be dissolved. Nicolas, can you elaborate a bit more on the issues you have with the "Dissolve + Multipart to singleparts" solution I provided

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Andrea Giudiceandrea
Nicolas Cadieux Mon, 30 Aug 2021 04:27:27 -0700 This is the plugin I was referring to. I don’t see it in the current plugins (experimental turned on) so I figured it’s QGIS 2 only. https://github.com/ArMoraer/QGISMergeLines Hi Nicolas, I've ported that plugin to QGIS3. You could download

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Thanks Charles, This will be very useful. Nice to know I'am not the only one going crazy with this!!! Nicolas On 2021-08-30 4:42 p.m., Charles Dixon-Paver wrote: I thought this would be easily solved with an expression but sadly I haven't been able to get reliable results at all. My first

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Charles Dixon-Paver
I thought this would be easily solved with an expression but sadly I haven't been able to get reliable results at all. My first thought was collect($geometry,filter:=intersects($geometry,geometry(@parent))) and when that didn't work I tried various aggregates and union operations to no avail.

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Hi, Seems like the plugin is available so I will try it out. The ability to create multi-linestring out of any touching lines (touch here means intersects at the first or last node) would be nice to have it if I can include it in a model. My goal is for this model to work for anyone with a

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Hi Andrea, That is great news. It may work for me in certain conditions. Will the plugin pop up in processing? It would be nice to include it in the QGIS plugin directory so that more people have access to it. Nicolas Cadieux https://gitlab.com/njacadieux > Le 30 août 2021 à 15:08, Andrea

Re: [Qgis-user] Line dissolve

2021-08-30 Thread David Strip
I looked at the source for this plug-in and as far as I can tell  it only merges lines that meet at endpoints. It ignores multi-lines, and only creates linestrings, so there are no vertices of degree >2 (ie, no junctions/forks). Also, the plug-in doesn't look for

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Hi, This is the plugin I was referring to. I don’t see it in the current plugins (experimental turned on) so I figured it’s QGIS 2 only. https://github.com/ArMoraer/QGISMergeLines Nicolas Cadieux https://gitlab.com/njacadieux > Le 30 août 2021 à 06:56, Nicolas Cadieux a > écrit : > > Hi,

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Hi, Thanks for the tip. I will play with the aggregate function. My goal is not to used the snap as I am trying to identify groups of connected lines in order to find the nodes that need to be snapped. The goal of my models is to find almost every possible linear network error that would

Re: [Qgis-user] Line dissolve

2021-08-30 Thread Nicolas Cadieux
Hi, Thanks for the info. There was also a line_merge (or merge line) plugin. The problem with the function that you are indicating is that it take a single Multilinestring and create a simple linestring if the ends are connected. What I am looking for is a way to select a file made of

Re: [Qgis-user] Line dissolve

2021-08-29 Thread Andrea Giudiceandrea
Nicolas Cadieux Sun, 29 Aug 2021 08:18:08 -0700 I did see a merge function but did not find the line_merge plugin in the repository. Hi Nicolas, "line_merge" is not a plugin. It is a function available in QGIS expression / field calculator: 14.3.13.53. line_merge Returns a LineString or

Re: [Qgis-user] Line dissolve

2021-08-29 Thread Charles Dixon-Paver
Hi Nicolas, I would urge you to try again as I was sure this would work and when I tested it I had no issues (using freshly digitized data). Maybe you need to run a snapping operation first? One issue is that intersecting lines may break your ability to retrieve attributes with aggregates. For

Re: [Qgis-user] Line dissolve

2021-08-29 Thread Nicolas Cadieux
Hi, Yes, Harrissou, That does not work with lines unfortunately. I tried multiple times with different combinations. It works with polygons when common borders need to be dissolved. I did see a merge function but did not find the line_merge plugin in the repository. I figured it was QGIS2

Re: [Qgis-user] Line dissolve

2021-08-28 Thread DelazJ
Hi Nicolas, What about using "Dissolve" and then "multiparts to singleparts"... There's also the line_merge function, if you want to go the expression route. Regards, Harrissou Le 29 août 2021 05:26:24 GMT+02:00, Nicolas Cadieux a écrit : >Hi, > >Just to clarify, I have no attribute to

Re: [Qgis-user] Line dissolve

2021-08-28 Thread Nicolas Cadieux
Hi, Just to clarify, I have no attribute to dissolve the lines on… so If you have as easy way to create an attribute list of all connected lines groups, I would also appreciate it. This is easy in strait python but I am making a model and trying to rely on existing algorithms. Thanks!

[Qgis-user] Line dissolve

2021-08-28 Thread Nicolas Cadieux
Hi, Is there an easy way, in processing, to dissolve lines that are touching? Alternative, can I create a multilinestring with all the lines that are touching? Seems this should be a basic tool to have in QGIS… Nicolas Cadieux