How to check a GeoJSON file

I want to visualize a GeoJSON file with Plot here:

https://observablehq.com/d/5758f59e729bc58e

When you uncomment the // fill option, the machine heats up and eventually hangs up and the site becomes unresponsive.

What is a good way to examine and fix the issue which seems to come from the GeoJSON file? E.g. maybe some polygons are not specified properly

Here’s the panacea:

import {rewind} from "@fil/rewind"
Plot.geo(rewind(stubborn geojson), {…})

Solves all your winding order issues! Very few adverse effects!

4 Likes

:joy: Thanks - worked perfectly!