GeoJSON Transforms
✓ Published0🌍 Public
Mmbostock
Last edited Dec 11, 2012
Created on Dec 11, 2012
This example demonstrates how GeoJSON geometry types can be transformed into simplified or filtered representations by applying custom point, line, and polygon handlers. It builds on the D3 geo module’s type dispatch system, explicitly defining default handlers for Feature, FeatureCollection, and GeometryCollection objects alongside primitive geometries. The code uses d3_geo_type and d3_noop to create a reusable translator, showing how to override or extend processing for each GeoJSON type. The rendering approach is not shown, focusing solely on the data-transformation pipeline.
AI-generated description