1

I would like to know how to visualize features (points) situated in the properties of feature collection that was obtained after applying 'spatial joins' on primary collection ( protected areas (Yosemite National Park))and secondary collection (power plants) in GEE?

https://developers.google.com/earth-engine/guides/joins_spatial

1 Answer 1

0

You only need to add following lines at the bottom of the code:

var points = ee.FeatureCollection(ee.List(spatialJoined.first().get('points')));

print(points);

Map.centerObject(primary, 8);
Map.addLayer(primary);
Map.addLayer(points);

Complete code can be accessed here and, after running it, the result is obtained as follows. There are all the power plants within 100 kilometers of Yosemite National Park, USA.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.