Last active
September 21, 2016 19:15
-
-
Save jgimbel/a7875c581d70f8b65cac4024f866b232 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Groups of polygons | |
geosjon | |
.features | |
//get area of polygons | |
.map(area) | |
//get the average area of polygons | |
.reduce( | |
(average, value, size) => (size * average + value) / (size + 1), | |
0 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment