This is a conceptual question.

What are the differences between these? and what are the pros and cons of these formats?

1 Answer 1


According to Mike Bostock (and other contributors to the TopoJSON extension):

TopoJSON is an extension of GeoJSON that encodes topology. Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. TopoJSON eliminates redundancy, offering much more compact representations of geometry than with GeoJSON; typical TopoJSON files are 80% smaller than their GeoJSON equivalents. In addition, TopoJSON facilitates applications that use topology, such as topology-preserving shape simplification, automatic map coloring, and cartograms.

One possible disadvantage of TopoJSON is that you need to implement support for converting the TopoJSON back into GeoJSON, for libraries that only work with GeoJSON.

  • 3
    This is correct. The coordinate data in TopoJSON also becomes somewhat opaque by the nature of the translate/scale constants and statefulness of each coordinate pair since they are all relative to their preceding points in the line string, making it harder to read. Commented Aug 22, 2013 at 17:58
  • 2
    re: support - It looks like the community is starting to add topojson support, presumably because of the 'weight' of geojson over a small pipe. PostGIS2.1 (Aug 2013 release) support a From_TopoJson and the topojson team has a reader that integrates with D3. Support from these two larger players is, I believe, a great thing for keeping TopoJson around.
    – Jay Laura
    Commented Aug 22, 2013 at 18:08
  • 1
    This is a good explanation of toposjson. bost.ocks.org/mike/topology
    – neogeomat
    Commented Sep 5, 2013 at 11:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.