AnsweredAssumed Answered

Get Pixels within Geometry from PixelBlock (JSAPI 4.X)

Question asked by lukas.wuersch_CDE on Dec 2, 2019
Latest reply on Dec 4, 2019 by lukas.wuersch_CDE


With the PixelBlock class, it is possible to access pixels from an imagery layer from the client side (for example like this ImageryLayer - client side pixel filter | ArcGIS API for JavaScript 4.13 ). Is it possible to 'clip' or 'filter' a pixelBlock, so only the pixels are returned which are within a geometry?


What I have in mind is something like this:

pixelsInGeometry = pixelData.pixelBlock.clip(geometry)

... but I did not find a method in the PixelBlock class to achieve this. 


I would highly appreciate any ideas of suggestions.


Kind Regards