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

Calculate the centroid from all polygons on a SpatialPolygons object #1

Closed
wants to merge 215 commits into from

Conversation

jmaspons
Copy link

Instead of returning the centroid of the larger polygon, calculate the centroids for each polygon and then calculate the mean latitude and longitude weighted by the area of the polygons.

stefan7th and others added 30 commits May 28, 2009 12:17
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/geosphere@1 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
rhijmans and others added 26 commits January 17, 2014 17:05
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/geosphere@190 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
…e centroids for each polygon and then calculate the mean latitude and longitude weigthed by the area of polygons.
@jeroen
Copy link

jeroen commented Aug 24, 2015

This is a read-only mirror of the SVN, you need to submit patches here: https://r-forge.r-project.org/projects/geosphere

@jmaspons
Copy link
Author

Thanks, I created a ticket but there is no news from the author and I don't have perms apply the patch
https://r-forge.r-project.org/tracker/index.php?func=detail&aid=6166&group_id=564&atid=2296

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