How to find which raster pixels are within a buffer geometry using RasterLayer API

08-19-2016 04:06 AM
Occasional Contributor

Consider this ImageService which is a Land cover raster layer with many classes e.g, forest, water, shrubland. I am trying to use the new RasterLayer API to find which pixels are within the buffer geometry and summarize the areas of forest, water, shrubland within the buffer geometry. Is this possible?

I can see the pixelData, but how does one find which pixel lies within the buffer geometry? and then compute the areas for each class within the buffer geometry.

I did see a similar example being demonstrated in one of the videos at (pl see screenshot). Not sure how they did that, any clues?

0 Kudos
0 Replies