d3 / d3-geo

Geographic projections, spherical shapes and spherical trigonometry.
https://d3js.org/d3-geo
Other
1.03k stars 161 forks source link

d3.geoBounds returning confusing output #253

Closed mrshll closed 2 years ago

mrshll commented 2 years ago

I've been trying to understand the output of getBounds. Regardless of the features I've passed it, I get the same output:

[[-180, -90], [180, 90]]

Here is a test with a single square feature over the state of Massachusetts in the US.

image

mbostock commented 2 years ago

I suspect that your winding order is reversed.