Skip to content

Commit

Permalink
Solved maps download with multiple time locators
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 21, 2024
1 parent c85cebd commit 834b0e3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ public GridCoverage2D stateToCoverage(IState state, ILocator locator, int type,
* that makes it work only with float.
*/
WritableRaster raster = RasterFactory.createBandedRaster(type, (int) grid.getXCells(), (int) grid.getYCells(), 1, null);

if (!(locator instanceof IScale)) {
locator = state.getScale().at(locator);
}
/*
* pre-fill with nodata (the thing is filled with 0s).
*/
Expand Down

1 comment on commit 834b0e3

@euskalhenriko
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved by @moovida

Please sign in to comment.