samapriya/awesome-gee-community-datasets

Relative Wealth Index

Opened this issue · 0 comments

Contact Details

No response

Provide Dataset Link

ee.FeatureCollection("projects/sat-io/open-datasets/facebook/relative_wealth_index")

Describe the example

How to visualize the relative wealth index using the paint function. The current example visualises all the points in a deafult black colour.

Link to script

var rwi = ee.FeatureCollection("projects/sat-io/open-datasets/facebook/relative_wealth_index");
var rwipalette = ['00A600','63C600','E6E600','E9BD3A','ECB176','EFC2B3'];

// Create an empty image into which to paint the features, cast to byte.
var empty = ee.Image().byte();

// Paint all the polygon edges with the same number and width, display.
var RWI = empty.paint({
featureCollection: rwi,
color: 'rwi',
width: 5
});

Map.addLayer(RWI, {palette: rwipalette}, 'RWI');

Code of Conduct

  • I agree to follow this project's Code of Conduct