Skip to content

Commit

Permalink
fix: small bug in test
Browse files Browse the repository at this point in the history
  • Loading branch information
furqaankhan committed Nov 17, 2023
1 parent 427a671 commit b35886e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void testZonalStatsAllWithEmptyRaster() throws FactoryException, ParseExc
GridCoverage2D raster = RasterConstructors.makeEmptyRaster(1, 6, 6, 1, -1, 1, -1, 0, 0, 4326);
double[] bandValue = new double[]{0, 0, 0, 0, 0, 0, 0, 1, 0, 3, 9, 0, 0, 5, 6, 0, 8, 0, 0, 4, 11, 11, 12, 0, 0, 13, 0, 15, 16, 0, 0, 0, 0, 0, 0, 0};
raster = MapAlgebra.addBandFromArray(raster, bandValue, 1);
raster = RasterBandEditors.setBandNoDataValue(raster, 1, 0);
raster = RasterBandEditors.setBandNoDataValue(raster, 1, 0d);
Geometry geom = Constructors.geomFromWKT("POLYGON((2 -2, 2 -6, 6 -6, 6 -2, 2 -2))", 4326);

double[] actual = RasterBandAccessors.getZonalStatsAll(raster, geom, 1, true);
Expand Down

0 comments on commit b35886e

Please sign in to comment.