Interface LayerNameMapper
-
- All Known Implementing Classes:
SimpleLayerNameMapper
public interface LayerNameMapper
Interface defining the mapping of image layer names (i.e. singleString
identifiers) to aDataset
ID and a Variable ID- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDatasetIdFromLayerName(String layerName)
Returns aDataset
based on a given image layer nameString
getLayerName(String datasetId, String variableId)
Returns the image layer name based on the dataset and variable IDString
getVariableIdFromLayerName(String layerName)
Returns a variable ID based on a given image layer name
-
-
-
Method Detail
-
getDatasetIdFromLayerName
String getDatasetIdFromLayerName(String layerName) throws EdalLayerNotFoundException
Returns aDataset
based on a given image layer name- Parameters:
layerName
- The name of the image layer- Returns:
- The ID of the desired dataset
- Throws:
EdalLayerNotFoundException
-
getVariableIdFromLayerName
String getVariableIdFromLayerName(String layerName) throws EdalLayerNotFoundException
Returns a variable ID based on a given image layer name- Parameters:
layerName
- The name of the image layer- Returns:
- The ID of the variable (within its
Dataset
) - Throws:
EdalLayerNotFoundException
- if the given layer name does not exist within this catalogue
-
-