Skip to main content
100%

format Arctic sea ice Polygon data

✓ Published0🌍 Public
HHirosaji
Last edited Jul 26, 2021
Created on Jul 15, 2021

This example shows how to prepare Arctic sea ice polygon data for mapping by splitting coordinate rings that cross the 180° meridian, ensuring each segment stays within a representable longitude range. It processes GeoJSON features containing polygon coordinates, detecting jumps greater than 180 degrees between consecutive points, then rebuilding rings with boundary points at ±180° and the pole. Using Node.js with the built-in `fs` module, it reads `input.geojson`, manipulates the geometry arrays, and writes the cleaned result to `output.geojson`. The output is intended for later visualization with libraries like `d3.geoPath`.

AI-generated description

Similar vizzes