Accessing HDF subdatasets
[Java]
static IRasterDataset HDFSubdataset(IRasterDataset rasterDataset, int subsetID)
throws Exception{
//RasterDataset represents a raster dataset from a HDF4 file.
IRasterDatasetJukebox hdfDataset = new IRasterDatasetJukeboxProxy(rasterDataset);
IRasterDataset subDatasset;
int datasetCount = hdfDataset.getSubdatasetCount();
if (subsetID < datasetCount){
hdfDataset.setSubdataset(subsetID);
subDatasset = new IRasterDatasetProxy(hdfDataset);
return subDatasset;
}
else{
return rasterDataset;
}
}
Development licensing |
Deployment licensing |
ArcInfo |
ArcInfo |
ArcEditor |
ArcEditor |
ArcView |
ArcView |
Engine Developer Kit |
Engine Runtime |