Convert SHP to CSV
Turn SHP files into CSV. A CSV with one row for each feature: its shape as WKT in a first column named WKT, then every attribute as a column.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop SHP files on the dialor turn it to pick what to do
A table with one row per feature.Each shape becomes WKT text in the first column, followed by its attributes.
What you get
One CSV file with one row for each feature in the shapefile. The first column is named WKT and holds the feature's shape as WKT. Every attribute follows as its own column.
If the shapefile holds several layers, they are joined into one table. A layer column names the layer each feature came from.
What changes
Coordinates are written in WGS 84 longitude and latitude. They are converted from the system the source uses, such as Korea's EPSG:5186. If the data names no system, the coordinates keep the values they have.
Lists and nested values become JSON text. A column that is already named WKT is renamed WKT_1, so the shape column stays first and keeps its name.
A feature with no geometry keeps its row, and its WKT cell is empty.
Going back
To turn a table with WKT back into shapes, use CSV to SHP. For other ways to convert this format, see every SHP conversion.
SHP and CSV.What each format is.
The formats
Shapefile
Esri shapefiles zipped with their .shx, .dbf and .cpg parts, the vector format GIS programs exchange.
- Extensions
- .shp.zip .shz .shp
- MIME type
- application
/x -shapefile +zip - Kind
- Text and data
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
In your code.The same SHP to CSV conversion through the API, for your app or your agent.
$ cv convert report.shp.zip report.csv$ cv convert report.shp.zip report.csvQuestions.What people ask about SHP to CSV.
WGS 84 longitude and latitude. Coordinates are converted from the source's system. If the data names no system, they are left as they are.
They keep their row. The WKT cell is empty.
It is renamed WKT_1. The new shape column keeps the name WKT.
Yes. The layers are joined into one CSV, and a layer column shows which layer each feature came from.