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:c81f48582f
[formerly9e1825b270
] [formerly86bd4e3b3f
] [formerly86bd4e3b3f
[formerlya2f745ec54
]] [formerlyc81f48582f
[formerly9e1825b270
] [formerly86bd4e3b3f
] [formerly86bd4e3b3f
[formerlya2f745ec54
]] [formerly5d769d8a8d
[formerly86bd4e3b3f
[formerlya2f745ec54
] [formerly5d769d8a8d
[formerly 42a05fc36d0ba3036a7e056d8871f684abf986c9]]]]] Former-commit-id:5d769d8a8d
Former-commit-id:75b24f6422
[formerly9761bc18ea
] [formerlyd9832e846b
] [formerly a7dc0341e59859526205e0dace8a987c91e83e4a [formerly 2108d5adbe08bf12c597593f05366699193eb6b8] [formerlyd9832e846b
[formerly2bb5377a4d
]]] Former-commit-id: 77e6dbca64f20bb3eb51a69ce94d157166c0af1a [formerly f94a7412d8370472fbff4f7faa55e5eb8e3ba709] [formerlydc85c1692b
[formerly0c5323fadb
]] Former-commit-id:dc85c1692b
Former-commit-id:a7f8d65804
This commit is contained in:
parent
b5e60b9935
commit
d45b08dfe5
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