Convert TOPOJSON to FGB
Turn TOPOJSON 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 TOPOJSON files on the dialor turn it to pick what to do
A compact binary file with your map features.Features and attributes keep their coordinate system and gain a spatial index.
What you get
One FGB file with the features and their attributes. The coordinate system of the TOPOJSON source is kept, and the file carries a spatial index.
What changes or is left out
Features without a geometry are left out of the FGB file. Lists and nested values in the attributes become JSON text.
If the TOPOJSON file has several layers, they are joined into one. A layer column names the layer each feature came from.
TOPOJSON and FGB.What each format is.
The formats
TopoJSON
TopoJSON, GeoJSON's compact cousin that shares borders between shapes, as D3 maps use it.
- Extensions
- .topojson
- MIME type
- application
/topo +json - 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 TOPOJSON to FGB conversion through the API, for your app or your agent.
$ cv convert report.topojson report.fgb$ cv convert report.topojson report.fgbQuestions.What people ask about TOPOJSON to FGB.
Yes. The features stay in the coordinate system of the source.
They are left out of the FGB file.
They become JSON text.
The layers are joined into one, and a layer column names where each feature came from.