d3 / d3-geo

Geographic projections, spherical shapes and spherical trigonometry.

Home Page:https://d3js.org/d3-geo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

d3.geoBounds returning confusing output

mrshll opened this issue · comments

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

I suspect that your winding order is reversed.