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: 9e1825b270 [formerly 86bd4e3b3f] [formerly a2f745ec54] [formerly 5d769d8a8d [formerly a2f745ec54 [formerly 42a05fc36d0ba3036a7e056d8871f684abf986c9]]]
Former-commit-id: 5d769d8a8d
Former-commit-id: 2108d5adbe08bf12c597593f05366699193eb6b8 [formerly 2bb5377a4d]
Former-commit-id: d9832e846b
This commit is contained in:
Bryan Kowal 2013-01-17 09:59:11 -06:00
parent 066e7e05e3
commit 9761bc18ea
3 changed files with 5 additions and 7 deletions

View file

@ -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));
}

View file

@ -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;

View file

@ -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);