[GIS] How to output coordinates from a shapefile to a GMT or CSV file in QGIS

convertcoordinatescsvqgisshapefile

I want to get the coordinates for a line shapefile as csv or gmt files.

I click create "new layer" – "new shapefile layer" – I check the "line" box and then "OK". Then I make my shapefile. When I move the cursor I can see the coordinates at the lower bar but when I create a new shapefile and look in the attribute table there is no coordinates.

How to get the all the coordinates for the shapefile?

Best Answer

You can use the Geometry Export to CSV function on your shapefile to obtain coordinates via:

MMQGIS > Import/Export > Geometry Export to CSV

Make sure it is enabled in Plugins > Manage and Install Plugins...