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

Centroid offset #8

Closed
svenvarkel opened this issue Apr 6, 2017 · 1 comment
Closed

Centroid offset #8

svenvarkel opened this issue Apr 6, 2017 · 1 comment

Comments

@svenvarkel
Copy link

svenvarkel commented Apr 6, 2017

Hi!

First thanks for great library!

I noticed a strange thing while using it: the centroids calculated by Turf differ from these added to US Census tiger shapefiles. In the shapefiles every feature has properties and there are centroid coordinates there - INTPTLAT and INTPTLON.

Why do they differ and which ones are more correct?

Here is an example: https://gist.github.com/svenvarkel/710bbf84486d1046fd28ad4303f436e6

@svenvarkel
Copy link
Author

Found the answer from here Turfjs/turf#334

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

No branches or pull requests

1 participant