//
// ELEVATION
//
// now get possible elevation
AbstractGridCoverage2DReader reader = null;
try {
reader = (AbstractGridCoverage2DReader) ci.getGridCoverageReader(null, GeoTools.getDefaultHints());
} catch (IOException e) {
LOGGER.severe("Unable to acquire a reader for this coverage with format: " + ci.getStore().getFormat().getName());
}
if(reader == null)
throw new WcsException("Unable to acquire a reader for this coverage with format: " + ci.getStore().getFormat().getName());
final String[] metadataNames = reader.getMetadataNames();
String elevationMetadata=null;
if (metadataNames != null && metadataNames.length > 0) {
// TIME DIMENSION
elevationMetadata = reader.getMetadataValue("ELEVATION_DOMAIN");
start("wcs:AxisDescription");
element("wcs:name", "ELEVATION");
element("wcs:label", "ELEVATION");
start("wcs:values");