Convert CSV to SHP

Turn CSV files into Shapefile. A zip of shapefiles, one for each kind of geometry among points, lines and polygons, each with its .shp, .shx, .dbf, .prj and .cpg, in the source's coordinate system with the attributes as UTF-8 columns.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CSV files on the dialor turn it to pick what to do

Points and shapes from a table.Each CSV row becomes a point or a shape in a zipped set of shapefiles.

  1. What you get

    One zip file. It holds a shapefile for each kind of geometry found in your rows, among points, lines and polygons. Each shapefile comes with its .shp, .shx, .dbf, .prj and .cpg parts.

    The other columns become attributes, stored as UTF-8 columns.

  2. How rows become geometry

    A row becomes a point when the table has longitude and latitude columns, such as lon and lat or x and y. A row becomes a shape when the table has a WKT column. Coordinates are taken as WGS 84.

    A table with neither fails with unsupported_elements.

  3. What changes

    Column names are cut to 10 characters. Lists and nested values become JSON text. Rows without a geometry are left out.

CSV and SHP.What each format is.

The formats

From · CSV

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
To · SHP

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

In your code.The same CSV to SHP conversion through the API, for your app or your agent.

terminal
$ cv convert sheet.csv sheet.shp.zip
$ cv convert sheet.csv sheet.shp.zip

Questions.What people ask about CSV to SHP.

01OF 04

It needs longitude and latitude columns, such as lon and lat or x and y, or a column of WKT shapes. Other columns are kept as attributes.

The table has no longitude and latitude columns and no WKT column. The conversion stops with unsupported_elements because there is no geometry to build.

Coordinates are taken as WGS 84. The shapefiles are written in that system.

Column names are cut to 10 characters in the output. Longer names are shortened.

More conversions.Other ways in and out of CSV and SHP.