<div dir="ltr"><font color="#444444">Hello,<br>I'm hoping that those with more experience of QIS might be able to help point me in the right direction.<br>I have a layer consisting of around 700 end-to-end polylines, each of which represents a 100m stretch of railway track centreline. Each polyline is attributed with an integer value which represents its starting chainage (distance in m from the start of the railway line, abbreviated ch.).<br>I also have a spreadsheet/csv with several hundred rows, each of which represents a different section of the railway. These sections are defined by their start and end chainage (e.g. ch. 1300 to ch. 1800 would be a 500m stretch starting 1300m from the beginning of the line).<br>I am looking for an efficient way to select each of the polylines associated with each row in the spreadsheet, dissolve them (they should touch end to end), and then save them as a new feature on an existing layer. Each one will need to be given a reference ID from the relevant line in the spreadsheet.<br>E.g.<br>Row 1 of spreadsheet selects all polylines with a starting chainage 1300 to 1700 (which with 100m segments selects the whole length 1300-1800),  dissolves them,<span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> populates the ID field from a field in the spreadsheet,</span> and<span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> finally</span> saves these resulting <span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)">new </span>feature to <span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)">an</span> existing layer.<br>This process would then repeat for the other rows in the spreadsheet/csv.<br>I’ve got a reasonable understanding of python,  but have never tried using it within qgis. Would that be the easiest route, or is there a <span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)">way of using v.extract in </span>batch<span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> mode</span><span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> which reads each of the required selections from</span> the spreadsheet?<span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> From the grass manual v.extract appears to read selections from a text file, but I can't find any good examples, or detail in the manual on the required format for the text file.</span></font><div><font color="#444444"><span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)">Any help much appreciated! </span><span class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(68,68,68)"> </span></font><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font face="Arial, sans-serif"><font color="#444444"><font style="font-size:10pt" size="2">Kind regards,</font></font></font></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#444444"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2">Sam.</font></font></font></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#4a442a"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2">Sam Williams</font></font></font></p><p style="margin-bottom:0cm;line-height:16px;color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#000000"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><font color="#790014"><span lang="en-GB">Director</span></font><font color="#4a442a"><span lang="en-GB"><span> </span>|<span> </span></span></font><font color="#007965"><font face="Trebuchet MS, sans-serif"><span lang="en-GB"><b>Sine Acoustics</b></span></font></font></font></font></font><br><font color="#4a442a"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB">m.<span> </span></span></font></font></font><font color="#1155cc"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB"><a href="tel:%2B44%207969%20123431" target="_blank">+447969123431</a></span></font></font></font><font color="#4a442a"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB">|</span></font></font></font><a href="mailto:Sam.Williams@sineenvironmental.com" target="_blank"><font color="#1155cc"><span style="text-decoration:none"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB">Sam.Williams@sineenvironmental.com</span></font></font></span></font></a><font color="#4a442a"><span style="text-decoration:none"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB"><span> </span></span></font></font></span></font><font color="#4a442a"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB">|<span> </span></span></font></font></font><a href="http://www.sineenvironmental.com/" target="_blank"><font color="#1155cc"><span style="text-decoration:none"><font face="Arial, sans-serif"><font style="font-size:10pt" size="2"><span lang="en-GB">www.sineenvironmental.com</span></font></font></span></font></a><br><font face="Arial, sans-serif"><font style="font-size:7pt" size="1"><font color="#4a442a"><span lang="en-GB">Sine Acoustics is a trading name of Sine Environmental Limited, company number </span></font><font color="#4a442a">9609805. Postal address: 78 Old Church Road, Clevedon, North Somerset, England, BS216PT.</font></font></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>