// Setting Envelope and Extents
//
// //
Map<Name, Map<String, HDF4ProductFieldType>> fieldsMap = new HashMap<Name, Map<String, HDF4ProductFieldType>>();
for (int imageIndex = 0; imageIndex < numImages; imageIndex++) {
final SpatioTemporalMetadata metadata = reader.getSpatioTemporalMetadata(imageIndex);
final SliceDescriptor sd = reader.getSliceDescriptor(imageIndex);
if (sd == null)
throw new IllegalStateException("unable to get the required sliceDescriptor");
// //
//
// Getting slice extent
//
// //
// VerticalExtent ve = sd.getVerticalExtent();
// CoordinateReferenceSystem crs = sd.getCoordinateReferenceSystem();
TemporalGeometricPrimitive time = sd.getTemporalExtent();
BoundingBox boundingBox = sd.getHorizontalExtent();
// String referenceID = "";
// if (crs instanceof CompoundCRS){
// List<CoordinateReferenceSystem> list = ((CompoundCRS) crs).getCoordinateReferenceSystems();
// if (list!=null && !list.isEmpty()){
// for (CoordinateReferenceSystem crsElement : list){
// if (crsElement instanceof VerticalCRS){
// referenceID = crsElement.getName().getCode();
// break;
// }
// }
// }
// }
Band band = metadata.getBand(0);
Set<TemporalGeometricPrimitive> temporalExtent;
// Set<NumberRange<Double>> verticalExtent;
Map<String, HDF4ProductFieldType> fields;
// //