Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong (sampled) projected border? #156

Closed
ondras opened this issue Feb 21, 2019 · 3 comments
Closed

Wrong (sampled) projected border? #156

ondras opened this issue Feb 21, 2019 · 3 comments

Comments

@ondras
Copy link
Contributor

ondras commented Feb 21, 2019

Hi,

I am using d3's geoRobinson to render country polygons. The USA-Canada border looks wrong:

(the line shall be mostly straight)

I am not sure how/why this happens; it is related to the projection's precision (setting a high value makes the line straight), but I have no idea why (the projection is supposed to make lines of latitude parallel anyway). The screenshot above was created using precision(.1).

@ondras
Copy link
Contributor Author

ondras commented Feb 21, 2019

Update: my bad, of course. That is the line along the great circle, obviously, which is correct. Sorry.

@ondras ondras closed this as completed Feb 21, 2019
@Fil
Copy link
Member

Fil commented Feb 21, 2019

Now you've invaded Canada :) The border between the two countries truly is on the 49th parallel north (small circle).

The interaction of D3's great circle drawing with your GeoJSON created this diplomatic incident.

See d3/d3-geo-projection#75

Other refs:

@ondras
Copy link
Contributor Author

ondras commented Feb 21, 2019

Now you've invaded Canada :) The border between the two countries truly is on the 49th parallel north (small circle).

Apparently getting from the eastern part of the US to the western part is faster if you take the route through Canada ;)

Thanks for the clarification and relevant resources!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants