Skip to content

Instantly share code, notes, and snippets.

Last active February 9, 2016 02:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
license: gpl-3.0

The 1:1,000,000 scale streams dataset from the National Atlas is available in TopoJSON. This dataset inspired me to write a pure JavaScript shapefile parser because the GeoJSON file is 941M, which is too big to load into memory due to a 1G restriction on buffer sizes in V8! The resulting TopoJSON file is only 34M, mostly thanks to the fixed-precision delta encoding of coordinates.

<!DOCTYPE html>
<meta charset="utf-8">
<img src="readme.png" width="960" height="500">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment