2

I have several points and its attributes. here is the attributes I want to classify them into some class, but I want to classify it in line shape. When I convert it into line, the attributes turn out to be one (one row only) while there were so many attributes from the points. it turned out to be this table How do I convert those points without making the attributes into one attribute? Can anyone help me?

closed as unclear what you're asking by user30184, nmtoken, Kersten, Andre Silva, John Powell Jan 11 '17 at 10:47

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Hi @Isti, how about creating the line and joining the points attributes as a spatial join or relation? It would also be good to mention why you want to convert points into lines, there might be other viable solutions to your issue. – Dom Jan 11 '17 at 2:17
  • 1
    It seems that you are confusing "attributes" with "features", so you question doesn't really make much sense. It seems to me that your second image shows just as many atrributes (columns) as your first image. However, it shows only one feature. You say that you want to convert your points (many features) into one line (one feature), but still have lots of features (I think you meant "features" here, rather than "attributes"). This does not make sense. You really need to explain why you want to do this in order for us to understand what you mean. – Son of a Beach Jan 11 '17 at 3:27
  • Eg, perhaps you really want to keep them all as point features, and merely want to visualise them connected by a line? By what criteria are you wanting to classify the points? For what purpose? – Son of a Beach Jan 11 '17 at 3:29
1

This is difficult to answer, based on the limited information in your question (eg, you haven't stated what process you used to convert points to line, or why you want to do this). However...

Assuming you want to create multiple lines and that you want each line to have its vertices based on a subset/group/category of points based on a common attribute value, you can do this using the QGIS plugin "PointsToPaths".

There's a really good post about the "PointsToPaths" plugin, including how to install it in QGIS, how to use it and some nice example screenshots of the results, at: QGIS Plugin of the Week: Points to Paths

However, if this is not what you are trying to achieve, and you really just want to keep all the points (every feature, and every attribute of every feature), and just visualise a line connecting each point feature, then you should convert the points to line (as you've already done), optionally delete all of the line's attributes that are not really relevant to it as a line (probably most of them), and then simply add it to your map, as well as the points (not instead of the points). Ie, view both points AND line on the map simultaneously.

Not the answer you're looking for? Browse other questions tagged or ask your own question.