I would like to know the world population in the year 2015 according to WorldPop data without bounding the calculation of the sum to a specific region or area of interest.

What is the function for doing this?

var worldPop = ee.ImageCollection("WorldPop/GP/100m/pop");

var WP_2015  = worldPop
  .filter(ee.Filter.equals('year', 2015))



You cannot aggregate pixels without specifying some region, either implicitly or explicitly. Just specify the whole world (as a non-geodesic polygon) and use it as a region in the reduceRegion call.

var WORLD = ee.Geometry.Polygon([-180, 88, 0, 88, 180, 88, 180, -60, 0, -60, -180, -60], null, false)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.