Hi, I would look into Jiffle:
http://docs.geotools.org/latest/userguide/unsupported/process/process-raster.html https://github.com/geosolutions-it/jai-ext/wiki/Jiffle---language-summary I used it for something that seems similar. Hope this helps, Yaniv On Fri, Mar 1, 2019 at 1:31 PM gis_wild via GeoTools-GT2-Users < geotools-gt2-users@lists.sourceforge.net> wrote: > Hi all, > > I aim to run zonal statistics on multiband raster (.tiff) file using one of > the bands in this raster. > I've just realized that the classification input parameter of > RasterZonalStatistics class "Must be a single band raster with integer > values". > > What is the easiest way to generate this coverage from multiband geotiff? > Can it be done in memory without creating the file on a file system? > > Thanks > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/geotools-gt2-users-f4317834.html > > > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Best regards, *Yaniv Ben-Yosef* *CTO, Milan InnoVincY B.V.* *M* +972(54)670 9743 | *S* yaniv.benyosef | *E* ybyo...@m-innovincy.com <ybyo...@m-innovincy.com> *The Netherlands* | Kapteynstraat 1 | 2201BB NOORDWIJK *Rwanda* | *AgriLift Ltd* | KG 536 Axiom Building, behind Telecom House | KIGALI *Confidential - Do not duplicate or distribute without written permission from Milan Innovincy B.V© Milan Innovincy B.V, 2017. Any third party right are hereby acknowledged. All rights reserved. Please consider the environment – do you really need to print this email?*
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users