Package uk.ac.rdg.resc.edal.wms
Interface WmsCatalogue
-
- All Superinterfaces:
DatasetCatalogue
,FeatureCatalogue
public interface WmsCatalogue extends FeatureCatalogue, DatasetCatalogue
This class encapsulates the elements needed to implement a specific WMS. This needs to be injected into aWmsServlet
to provide:- Global server settings
- Contact information for the server
- Retrieval/generation of layer names from dataset/variable IDs
- Defining default plotting parameters for WMS layers
- Defining available styles for WMS layers
- Author:
- Guy Griffiths
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.rdg.resc.edal.graphics.utils.FeatureCatalogue
FeatureCatalogue.FeaturesAndMemberName
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContactInfo
getContactInfo()
String
getDatasetTitle(String datasetId)
LayerNameMapper
getLayerNameMapper()
ServerInfo
getServerInfo()
StyleCatalogue
getStyleCatalogue()
boolean
isDisabled(String layerName)
Checks whether a layer is enabledboolean
isDownloadable(String layerName)
Checks whether a layer is downloadableboolean
isQueryable(String layerName)
Checks whether a layer is queryable-
Methods inherited from interface uk.ac.rdg.resc.edal.graphics.utils.DatasetCatalogue
getAllDatasets, getDatasetFromId, getLastUpdateTime, getLayerMetadata
-
Methods inherited from interface uk.ac.rdg.resc.edal.graphics.utils.FeatureCatalogue
getFeaturesForLayer
-
-
-
-
Method Detail
-
getLayerNameMapper
LayerNameMapper getLayerNameMapper()
- Returns:
- The
LayerNameMapper
which maps WMS layer names toDataset
s and Variables
-
getStyleCatalogue
StyleCatalogue getStyleCatalogue()
- Returns:
- The
StyleCatalogue
giving available styles for this WMS
-
getServerInfo
ServerInfo getServerInfo()
- Returns:
- The main server metadata for this server
-
getContactInfo
ContactInfo getContactInfo()
- Returns:
- The main contact information for this server
-
getDatasetTitle
String getDatasetTitle(String datasetId)
- Parameters:
datasetId
- The ID of the dataset- Returns:
- The server-configured title of this dataset
-
isDownloadable
boolean isDownloadable(String layerName)
Checks whether a layer is downloadable- Parameters:
layerName
- The name of the layer- Returns:
- Whether or not the given layer can be downloaded in bulk (e.g. through a timeseries/profile request for CSV/XML/etc)
-
isQueryable
boolean isQueryable(String layerName)
Checks whether a layer is queryable- Parameters:
layerName
- The name of the layer- Returns:
- Whether or not the given layer can be queried with GetFeatureInfo requests
-
isDisabled
boolean isDisabled(String layerName)
Checks whether a layer is enabled- Parameters:
layerName
- The name of the layer- Returns:
- Whether or not the given layer is enabled (i.e. visible in menu/GetCapabilities)
-
-