I have a shapefile with 60k+ entries, all of which are polygons with corresponding attributes (acreage totals, landowner names, tax ID #s, etc.). What I ultimately need is a CSV file with all of these attributes and their corresponding geometry (in the KML compatible xyz format, that is, NOT the WKT format).
I know that I can open the .dbf file in Excel and get the attributes. I also know that I can open the shapefile in QGIS and copy the data into Excel, which gets me attributes and WKT geometry.
Is there a simple way to convert the shapefile to CSV (openable in Excel) with attribute and Google Earth friendly geometry?
Best Answer
Here's a simple script that uses the OGR python bindings:
EDIT: and another script to convert from your CSV to KML