block by mbostock 4751960

Streams

Full Screen

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.

index.html