Package thredds.server.wms.config
Class WmsDetailedConfig
java.lang.Object
thredds.server.wms.config.WmsDetailedConfig
Parse and provide interface to wmsConfig.xml
wmsConfig.xml allows a TDS Admin a way to set default values to be used for generating images from the wms service.
The following properties can be set in the global defaults section:
- allowFeatureInfo
- defaultColorScaleRange
- defaultAboveMaxColor
- defaultBelowMinColor
- defaultNoDataColor
- defaultOpacity
- defaultPaletteName
- defaultNumColorBands
- logScaling
- intervalTime
-
Method Summary
Modifier and TypeMethodDescriptionstatic WmsDetailedConfigfromLocation(String wmsConfigFileLocation) Parses the XML file from the given location on disk.getSettings(ThreddsWmsCatalogue layer, uk.ac.rdg.resc.edal.metadata.VariableMetadata variableMetadata) Gets the settings for the givenThreddsWmsCatalogue.static WmsDetailedConfigLoad wmsConfig.xml from its InputStream
-
Method Details
-
fromLocation
Parses the XML file from the given location on disk.- Returns:
- a new WmsDetailedConfig object, if and only if parsing was successful.
-
loadFromStream
Load wmsConfig.xml from its InputStream- Parameters:
in- InputStream of the wmsConfig.xml file- Returns:
- A new WmdDetailedConfig object. May be empty if there is an issue parsing wmsConfig.xml
-
getSettings
public LayerSettings getSettings(ThreddsWmsCatalogue layer, uk.ac.rdg.resc.edal.metadata.VariableMetadata variableMetadata) Gets the settings for the givenThreddsWmsCatalogue. None of the fields will be null in the returned object.- Parameters:
layer- WMS catalog associated with the layervariableMetadata- metadata associated with the layer- Returns:
- Visualization settings associated with the layer
-