Issue #1469 - getPath will be used in the place of getAbsolutePath so java does not prepend a fictional path to the beginning of the expected path
Former-commit-id:86bd4e3b3f
[formerlya2f745ec54
] [formerly86bd4e3b3f
[formerlya2f745ec54
] [formerly5d769d8a8d
[formerly 42a05fc36d0ba3036a7e056d8871f684abf986c9]]] Former-commit-id:5d769d8a8d
Former-commit-id:d9832e846b
[formerly2bb5377a4d
] Former-commit-id:0c5323fadb
This commit is contained in:
parent
0b8e0ac970
commit
dc85c1692b
3 changed files with 5 additions and 7 deletions
|
@ -260,8 +260,7 @@ public class SatelliteDataCubeAdapter implements IDataCubeAdapter {
|
|||
derivedRequest = new DerivedParameterRequest(derivedRequest);
|
||||
for (Object param : derivedRequest.getBaseParams()) {
|
||||
records.add((SatelliteRecord) param);
|
||||
hdf5Files.add(HDF5Util.findHDF5Location((SatelliteRecord) param)
|
||||
.getAbsoluteFile());
|
||||
hdf5Files.add(HDF5Util.findHDF5Location((SatelliteRecord) param));
|
||||
datasets.add(getDataset(((SatelliteRecord) param).getDataURI(),
|
||||
dataset));
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class SatFileBasedTileSet extends FileBasedTileSet {
|
|||
|
||||
public SatFileBasedTileSet(PluginDataObject pdo, String dataset,
|
||||
AbstractTileSet sharedGeometryTileset) throws VizException {
|
||||
super(HDF5Util.findHDF5Location(pdo).getAbsolutePath(), pdo
|
||||
super(HDF5Util.findHDF5Location(pdo).getPath(), pdo
|
||||
.getDataURI(), dataset, sharedGeometryTileset);
|
||||
this.pdo = pdo;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class SatFileBasedTileSet extends FileBasedTileSet {
|
|||
public SatFileBasedTileSet(PluginDataObject pdo, String dataset,
|
||||
int levels, int tileSize, GridGeometry2D gridGeometry,
|
||||
AbstractVizResource<?, ?> rsc, String viewType) throws VizException {
|
||||
super(HDF5Util.findHDF5Location(pdo).getAbsolutePath(), pdo
|
||||
super(HDF5Util.findHDF5Location(pdo).getPath(), pdo
|
||||
.getDataURI(), dataset, levels, tileSize, gridGeometry, rsc,
|
||||
viewType);
|
||||
this.pdo = pdo;
|
||||
|
@ -101,7 +101,7 @@ public class SatFileBasedTileSet extends FileBasedTileSet {
|
|||
int levels, int tileSize, GridGeometry2D gridGeometry,
|
||||
AbstractVizResource<?, ?> rsc, PixelInCell pixelOrientation,
|
||||
String viewType) throws VizException {
|
||||
super(HDF5Util.findHDF5Location(pdo).getAbsolutePath(), pdo
|
||||
super(HDF5Util.findHDF5Location(pdo).getPath(), pdo
|
||||
.getDataURI(), dataset, levels, tileSize, gridGeometry, rsc,
|
||||
pixelOrientation, viewType);
|
||||
this.pdo = pdo;
|
||||
|
|
|
@ -130,12 +130,11 @@ public class NcscatResource extends
|
|||
// Given the NcscatRecord, locate the associated HDF5 data...
|
||||
File location = HDF5Util.findHDF5Location(nsRecord);
|
||||
|
||||
String hdf5File = location.getAbsolutePath();
|
||||
String group = nsRecord.getDataURI();
|
||||
String dataset = "Ncscat";
|
||||
|
||||
// ...and retrieve it
|
||||
IDataStore ds = DataStoreFactory.getDataStore(new File(hdf5File));
|
||||
IDataStore ds = DataStoreFactory.getDataStore(location);
|
||||
IDataRecord dr;
|
||||
try {
|
||||
dr = ds.retrieve(group, dataset, Request.ALL);
|
||||
|
|
Loading…
Add table
Reference in a new issue