Issue #978 GChange GridResource to use its own times rather than descriptor times.
Former-commit-id:d841924588
[formerlyc5c9e8b05c
] [formerly8346805ed2
] [formerly090b9f5ccb
[formerly8346805ed2
[formerly 1481f818fed5ff9f18387d8fcbd9c30da37a9dd7]]] Former-commit-id:090b9f5ccb
Former-commit-id: 48422de135df5bd5bb5a29c2544903c467f744af [formerly942b0e5315
] Former-commit-id:5954717c26
This commit is contained in:
parent
2bdb58cd5d
commit
eef338e55c
1 changed files with 13 additions and 11 deletions
|
@ -307,11 +307,12 @@ public class GridResource extends
|
|||
.getLocation().getGridGeometry();
|
||||
GridGeometry2D expectedGridGeometry = this.gridGeometry[0];
|
||||
if (!realGridGeometry.equals(expectedGridGeometry)) {
|
||||
GridReprojection reproj = new GridReprojection(realGridGeometry,
|
||||
expectedGridGeometry);
|
||||
com.raytheon.uf.common.geospatial.interpolation.Interpolation interp;
|
||||
GridReprojection reproj = new GridReprojection(
|
||||
realGridGeometry, expectedGridGeometry);
|
||||
com.raytheon.uf.common.geospatial.interpolation.Interpolation interp;
|
||||
|
||||
if (getCapability(ImagingCapability.class).isInterpolationState()) {
|
||||
if (getCapability(ImagingCapability.class)
|
||||
.isInterpolationState()) {
|
||||
BilinearInterpolation blInterp = new BilinearInterpolation();
|
||||
blInterp.setMissingThreshold(1.0f);
|
||||
interp = blInterp;
|
||||
|
@ -849,11 +850,11 @@ public class GridResource extends
|
|||
baseTileEntry.setValue(combinedResourceData);
|
||||
}
|
||||
}
|
||||
DataTime[] primaryDataTimes = descriptor.getTimeMatchingMap().get(
|
||||
this);
|
||||
for (int i = 0; i < primaryDataTimes.length; i++) {
|
||||
DataTime[] primaryDataTimes = tileSet.keySet().toArray(
|
||||
new DataTime[0]);
|
||||
for (DataTime primaryDataTime : primaryDataTimes) {
|
||||
Map<Float, GridMemoryBasedTileSet> map = tileSet
|
||||
.get(primaryDataTimes[i]);
|
||||
.get(primaryDataTime);
|
||||
if (map != null) {
|
||||
for (Map.Entry<Float, GridMemoryBasedTileSet> tile : map
|
||||
.entrySet()) {
|
||||
|
@ -861,7 +862,7 @@ public class GridResource extends
|
|||
if (combineResources) {
|
||||
Map<Float, GridMemoryBasedTileSet> map2 = new HashMap<Float, GridResource.GridMemoryBasedTileSet>();
|
||||
map2.put(tile.getKey(), tile.getValue());
|
||||
combinedSet.put(primaryDataTimes[i], map2);
|
||||
combinedSet.put(primaryDataTime, map2);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
@ -873,7 +874,7 @@ public class GridResource extends
|
|||
.getValue());
|
||||
Map<Float, GridMemoryBasedTileSet> map2 = new HashMap<Float, GridResource.GridMemoryBasedTileSet>();
|
||||
map2.put(tile.getKey(), combinedResourceData);
|
||||
combinedSet.put(primaryDataTimes[i], map2);
|
||||
combinedSet.put(primaryDataTime, map2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1520,7 +1521,8 @@ public class GridResource extends
|
|||
// TODO: check if interpolation state really changed
|
||||
try {
|
||||
if (descriptor != null)
|
||||
project(descriptor.getGridGeometry().getCoordinateReferenceSystem());
|
||||
project(descriptor.getGridGeometry()
|
||||
.getCoordinateReferenceSystem());
|
||||
} catch (VizException e) {
|
||||
statusHandler.handle(Priority.PROBLEM,
|
||||
"Error updating grid resource imaging", e);
|
||||
|
|
Loading…
Add table
Reference in a new issue