Skip to main content
100%

InterruptedSinuMollweide inverse projection

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Apr 30, 2017
Created on Apr 30, 2017

This example demonstrates the inverse of the InterruptedSinuMollweide projection, visually validating that the projection and its inverse accurately map points on a sphere. A grid of points is rendered in green when the forward and inverse projections agree, red when they disagree, and blue when inversion fails. The code uses d3-geo-projection's `d3.geoInterruptedSinuMollweide` and `d3.geoPath` to draw the graticule and world map from TopoJSON data. The inverse computation relies on `d3.geoSolve`, and the visualization is rendered as an SVG with interactive mouse tracking.

AI-generated description

Computing the inverse of the InterruptedSinuMollweide projection for issue #85.

See <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/07930ee04d7fbd9e5e3e84e803d35dcf'>ChamberlinAfrica inverse projection</a> for details of the method.

For this specific projection we had to add syntactic sugar, and export d3-geo:solve as d3.geoSolve() to be able to use it directly in d3-geo-projection:interrupt.invert.

gpl-3.0 Licensed

Similar vizzes