Skip to main content
100%

Streams

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Feb 11, 2013

A map of the United States displays the National Atlas’s 1:1,000,000 scale streams dataset, rendered from TopoJSON converted to GeoJSON. The visualization uses d3.geoPath and d3.geoStitch to project and draw fine-grained river networks, which are simplified via TopoJSON’s quantization and delta encoding to keep the file manageable. The page also includes a static PNG preview of the resulting map.

AI-generated description

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.

gpl-3.0 Licensed

Similar vizzes