Reputation: 63
I have an shp with ALL countries together.
I tried "shp2text" that did it, only it stoped somewhere in the beginning about letter "I".
Now I'm trying with QGIS that I heard could do it, but it doesn't seem so..
How can I do it?
I dont care if it's in csv or a db file. Just that I will be able to collect the polygons X,Y coordinates. Is it possible with QGIS?
Upvotes: 1
Views: 509
Reputation: 126
User ogr2ogr instead of QGIS:
ogr2ogr -f CSV alaska.csv alaska.shp -lco GEOMETRY=AS_WKT
This will give you the coordinates of the polygons as Well Known Text (WKT):
"POLYGON ((-609587.041217662277631 7642184.568168770521879,
-625107.790384300402366 7640918.446049335412681,
-588062.577403088333085 7649193.995257394388318,
-609587.041217662277631 7642184.568168770521879))",
5,Alaska,1.462410000000000
Upvotes: 1