Skip to main content
formatting
Source Link
Ian Turton
  • 83.2k
  • 6
  • 89
  • 189

I managed to import a csv file containing lines in QGIS but unfortunately the x y aren't in the correct order. that is, the csv has a field where there is a sequence of lat (y), lon (x), while qgis apparently wants x,y. I become aware of this problem because my lines are plotted in a place which isn't my area under study. What can I do? ID;geometry;name;definition;type;ID_linea 3;2;"LINESTRING(46.155628 13.17198, 46.155283 13.172648)";Ippovia Cormor in Comune di Tricesimo;qua1;1

ID;geometry;name;definition;type;ID_linea
3;2;"LINESTRING(46.155628 13.17198, 46.155283 13.172648)";Ippovia Cormor in Comune di Tricesimo;qua1;1

(That should be somewhere in italy)

Thank you.

I managed to import a csv file containing lines in QGIS but unfortunately the x y aren't in the correct order. that is, the csv has a field where there is a sequence of lat (y), lon (x), while qgis apparently wants x,y. I become aware of this problem because my lines are plotted in a place which isn't my area under study. What can I do? ID;geometry;name;definition;type;ID_linea 3;2;"LINESTRING(46.155628 13.17198, 46.155283 13.172648)";Ippovia Cormor in Comune di Tricesimo;qua1;1

(That should be somewhere in italy)

Thank you.

I managed to import a csv file containing lines in QGIS but unfortunately the x y aren't in the correct order. that is, the csv has a field where there is a sequence of lat (y), lon (x), while qgis apparently wants x,y. I become aware of this problem because my lines are plotted in a place which isn't my area under study. What can I do?

ID;geometry;name;definition;type;ID_linea
3;2;"LINESTRING(46.155628 13.17198, 46.155283 13.172648)";Ippovia Cormor in Comune di Tricesimo;qua1;1

(That should be somewhere in italy)

Source Link
Geo_it
  • 533
  • 3
  • 10

Can I reorder the coordinates of a line when importing into QGIS a WKT linestring?

I managed to import a csv file containing lines in QGIS but unfortunately the x y aren't in the correct order. that is, the csv has a field where there is a sequence of lat (y), lon (x), while qgis apparently wants x,y. I become aware of this problem because my lines are plotted in a place which isn't my area under study. What can I do? ID;geometry;name;definition;type;ID_linea 3;2;"LINESTRING(46.155628 13.17198, 46.155283 13.172648)";Ippovia Cormor in Comune di Tricesimo;qua1;1

(That should be somewhere in italy)

Thank you.