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.
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.
What changes or is left out
Features without a geometry are left out of the file. Lists and nested values become JSON text.
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
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
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.
$ cv convert sheet.csv sheet.fgb$ cv convert sheet.csv sheet.fgbQuestions.What people ask about CSV to FGB.
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.