2

I am trying to connect pairs of points by lines using the Points2One tool in QGIS. I have created the data and exported it as shapefile. The data looks similar to the data in this question: Workflow for creating line features between two coordinate pairs in QGIS

The problem is after grouping the data by id and sorting by order I get an error which says "Can't make a polyline out of one points." I am not sure what I am doing wrong here as I am new to QGIS.

Error image

Here's the attribute table:
id,       order,    longitude,  latitude
stream1,    1,     80.187006,   12.989196
stream1,    2,     78.509647,   17.441657
stream2,    1,     78.454394,   17.242307
stream2,    2,     80.157087,   13.112136
nmtoken
  • 13,355
  • 5
  • 38
  • 87
Ross
  • 23
  • 4
  • Can you add the attribute table of the locationpoint layer? Are you sure that several points share the same id value? – AndreJ Jul 28 '15 at 18:27

1 Answers1

2

I don't remember this tool having two sorting inputs ... anyway this works:

enter image description here

underdark
  • 84,148
  • 21
  • 231
  • 413
  • Thanks it works like a charm. I am using QGIS version 2.10.1 maybe that's the reason for two sorting inputs. – Ross Jul 28 '15 at 20:21
  • Is there a way to display values on the lines. I want to put a number on each line. Is it possible ? Does QGIS have a tool for that ? – Ross Jul 30 '15 at 04:22