So I have 2 layers each are both vectors and not images. here the link:
https://code.earthengine.google.com/e7aec6c9683ed40a959a01a7ed5dd31f
I have written some basic code to display the data which is this:
var crimes = ee.FeatureCollection("users/paulspeddin/2018-01-London");
var districts = ee.FeatureCollection("users/paulspeddin/London_Ward");
Map.addLayer(crimes, {}, "Crimes");
Map.addLayer(districts, {}, "Districts");
How can I sum all the points within the boundary lines? What I want is to sum all the points and then to sum the number of points within each district and then create a colour gradient coded map where red is high, green is low.
How can I access each district of the code from one layer to count if it is within the boundaries of another?
London Boundaries Dataset:
https://code.earthengine.google.com/?asset=users/paulspeddin/London_Ward
Police Dataset:
https://code.earthengine.google.com/?asset=users/paulspeddin/2018-01-London