public static GridCoverage2D cut ( GridCoverage2D raster , GridCoverage2D mask ) throws Exception { OmsCutOut cutDrain = new OmsCutOut ( ) ; cutDrain . inRaster = raster ; cutDrain . inMask = mask ; cutDrain . process ( ) ; return cutDrain . outRaster ; }
Cut a raster on a mask using the default parameters .