Mean of all pixels possible via JS API?

298
0
03-01-2020 06:44 PM
DaveMcLaughlin
New Contributor II

I am building a web map with the ArcGIS JavaScript API which pulls in two data sources:

  1. a WMSLayer with a single raster (each pixel with a value from 0 to 100)
  2. a MapImageLayer with polygons

I am hoping to allow the user to select a polygon from the MapImageLayer, then clip the raster layer with the polygon in order to display the mean value of all the pixels within that polygon. I’ve got my layers loading in and believe I can perform a clip.

Is it possible to then calculate the mean of all the remaining pixel values? If so, could you point me in the right direction? Thanks in advance!

Tags (1)
0 Kudos
0 Replies