Package thredds.server.wms.config
Class WmsDetailedConfig
- java.lang.Object
-
- thredds.server.wms.config.WmsDetailedConfig
-
public class WmsDetailedConfig extends Object
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
- defaultPaletteName
- defaultNumColorBands
- logScaling
- intervalTime
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WmsDetailedConfigfromLocation(String wmsConfigFileLocation)Parses the XML file from the given location on disk.LayerSettingsgetSettings(ThreddsWmsCatalogue layer, uk.ac.rdg.resc.edal.metadata.VariableMetadata variableMetadata)Gets the settings for the givenThreddsWmsCatalogue.static WmsDetailedConfigloadFromStream(InputStream in)Load wmsConfig.xml from its InputStream
-
-
-
Method Detail
-
fromLocation
@Nullable public static WmsDetailedConfig fromLocation(String wmsConfigFileLocation)
Parses the XML file from the given location on disk.- Returns:
- a new WmsDetailedConfig object, if and only if parsing was successful.
-
loadFromStream
public static WmsDetailedConfig loadFromStream(InputStream in)
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
-
-