Skip to content

Commit

Permalink
fix: looping variables
Browse files Browse the repository at this point in the history
  • Loading branch information
furqaankhan committed Sep 18, 2023
1 parent 13dffe8 commit ed7d1e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ public static GridCoverage2D setValues(GridCoverage2D raster, int band, Geometry
int x = pixelLocation.x, y = pixelLocation.y;
// i & j is for main raster
// k & l is for rasterized geom
for (int j = x, l = 0; j < height + x; j++, l++) {
for (int i = y, k = 0; i < width + y; i++, k++) {
for (int j = y, l = 0; j < height + y; j++, l++) {
for (int i = x, k = 0; i < width + x; i++, k++) {
double[] pixel = rasterCopied.getPixel(i, j, (double[]) null);
// [0] as only one band in the rasterized Geometry
double pixelNew = rasterizedGeomData.getPixel(k, l, (double[]) null)[0];
Expand Down

0 comments on commit ed7d1e2

Please sign in to comment.