Convert CSV to FGB

Turn CSV files into FlatGeobuf. A FlatGeobuf with the features and their attributes in the source's coordinate system and a spatial index.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Map points from a table of rows.Each row becomes a point or a shape in a FlatGeobuf file with a spatial index.

  1. What you get

    One FGB file with the features and their attributes. It has a spatial index and keeps the source's coordinate system. Coordinates are taken as WGS 84.

    Each 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. The other columns become attributes.

  2. What changes or is left out

    Features without a geometry are left out of the file. Lists and nested values become JSON text.

  3. When it fails

    A table with no longitude and latitude columns and no WKT column has no geometry to build, so the conversion stops with unsupported_elements.

    If your data is spread over several files, merge CSV first to join them into one table.

CSV and FGB.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 · FGB

FlatGeobuf

FlatGeobuf, a compact binary format for map features that streams over the web.

Extensions
.fgb
MIME type
application/flatgeobuf
Kind
Text and data

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

terminal
$ cv convert sheet.csv sheet.fgb
$ cv convert sheet.csv sheet.fgb

Questions.What people ask about CSV to FGB.

01OF 04

It looks for longitude and latitude columns, such as lon and lat or x and y. A WKT column gives shapes instead of points.

They become attributes on each feature.

Coordinates are taken as WGS 84.

The table has no longitude and latitude columns and no WKT column. Without one of them, there is no geometry to build.

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