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

Relative Wealth Index #313

Open
1 task done
Geethen opened this issue Dec 3, 2024 · 0 comments
Open
1 task done

Relative Wealth Index #313

Geethen opened this issue Dec 3, 2024 · 0 comments
Assignees

Comments

@Geethen
Copy link

Geethen commented Dec 3, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants