-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
It’d be nice if this library were easier to use when saving spherically-clipped GeoJSON. For example:
https://beta.observablehq.com/d/d706c7f9c6e46907
The tedious parts are:
-
You need to wrap the d3.geoClipPolygon instance with an object that has a stream method.
-
You need to compose the d3.geoClipPolygon instance with streams that transform from degrees to radians and then back again.
Part of me wonders if it’s worth revisiting a more composable geographic projection pipeline…
(Also, I think d3.geoProject sometimes breaks polygon semantics, but that’s a separate issue.)
jake-low