1

I would like to map with palette and definition used in the example of "old" WorldPop data as in the image bellow (https://developers.google.com/earth-engine/datasets/catalog/WorldPop_POP) the "new" world wide coverage data on WorldPop (WorldPop/GP/100m/pop at: https://developers.google.com/earth-engine/datasets/catalog/WorldPop_GP_100m_pop ) in Google Earth Engine

enter image description here

my current code does not plot as in the image attached ... but only black and white with all saturated ....

var worldPop = ee.ImageCollection("WorldPop/GP/100m/pop") .filterDate('2017'); Map.addLayer(worldPop)

2

In the first link you provide there is a variable "populationVis" that defines the visualization parameters. Just apply that visualization to your collection.

var worldPop = ee.ImageCollection("WorldPop/GP/100m/pop") .filterDate('2017');
var populationVis = {
    min: 0.0,
    max: 50.0,
    palette: ['24126c', '1fff4f', 'd4ff50'],
    };

Map.setCenter(113.643, 34.769, 7);
Map.addLayer(worldPop, populationVis, 'Population');
| improve this answer | |
  • How I can export to drive a clipped part of such image : – Gab Feb 18 at 14:40
  • Check this developers.google.com/earth-engine/exporting – HMSP Feb 18 at 15:02
  • Export.image.toDrive({ image: dataset.select('population'), description: 'worldPop', scale: 100, region: export_geometry_2 }) did not work – Gab Feb 18 at 17:52
  • The image is worldPop. Regarding the region, with this command you will export the area in your canvas: Export.image.toDrive({ image: worldPop, description: 'worldPop', scale: 100}) – HMSP Feb 19 at 7:11

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.