Re: [JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread Rahkonen Jukka (MML)
Hi MIchaël, I tested the script with my data and it works great. An improvement for the future might be to add a selection for "group by" attribute and write the value into the result layer as an attribute. But OpenJUMP has already a good Extract layer by attribute tool which makes it pretty f

Re: [JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread Michaël Michaud
Hi Jukka, This is a very common problem and I already developped a small beantool for that. I could not attach it to the mail, so I copy/paste it here http://ojwiki.soldin.de/index.php?title=Beanshell:Create_linestring_from_points_with_id_attribute But it would probably deserve a plugin. NB :

Re: [JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread edgar . soldin
can you send me a small example dataset? ..ede On 13.09.2016 13:08, Rahkonen Jukka (MML) wrote: > Hi, > > I play with GPS track points and there are thousands of points. Concatenating > attributes does not make sense. Picking attributes from the first point would > do, or just drop all the attr

Re: [JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread Rahkonen Jukka (MML)
Hi, I play with GPS track points and there are thousands of points. Concatenating attributes does not make sense. Picking attributes from the first point would do, or just drop all the attributes. Converting to multipoint and then into linestring gives a funny result with zig-zagging line that

Re: [JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread edgar . soldin
how do you expect the attributes to be concatenated in the resulting linestring? did you try joining them to a multipoint and convert that to linestring? ..ede On 13.09.2016 09:45, Rahkonen Jukka (MML) wrote: > Hi, > > I have some point data which I would like to convert into linestrings. Point

[JPP-Devel] Script for building a linestring from ordered points

2016-09-13 Thread Rahkonen Jukka (MML)
Hi, I have some point data which I would like to convert into linestrings. Points are ordered correctly in the file but they have also useful IDs. I don't find a readymade tool for this task but I have a feeling that it should not be so hard to do with a little beanshell script. This might sui