Class TdsEnhancedVariableMetadata

  • All Implemented Interfaces:
    uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata

    public class TdsEnhancedVariableMetadata
    extends Object
    implements uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
    Use the custom settings in wmsConfig.xml to set default visualization values based on:
    • global defaults
    • TDS URL Path based defaults
    • Standard Name based defaults
    • variable name based defaults
    with variable name defaults taking highest precedence.
    • Constructor Detail

      • TdsEnhancedVariableMetadata

        public TdsEnhancedVariableMetadata​(ThreddsWmsCatalogue layer,
                                           uk.ac.rdg.resc.edal.metadata.VariableMetadata metadata)
    • Method Detail

      • setWmsConfig

        public static void setWmsConfig​(WmsConfigBean config)
      • getId

        public String getId()
        Specified by:
        getId in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        The ID of the variable this EnhancedVariableMetadata is associated with
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        The title of this layer to be displayed in the menu and the Capabilities document
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        A brief description of this layer to be displayed in the Capabilities document
      • getCopyright

        public String getCopyright()
        Specified by:
        getCopyright in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        Copyright information about this layer to be displayed be clients
      • getMoreInfo

        public String getMoreInfo()
        Specified by:
        getMoreInfo in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        More information about this layer to be displayed be clients
      • getDefaultPlottingParameters

        public uk.ac.rdg.resc.edal.graphics.utils.PlottingStyleParameters getDefaultPlottingParameters()
        Specified by:
        getDefaultPlottingParameters in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        The default plot settings for this variable - this may not return null, but any of the defined methods within the returned PlottingStyleParameters object may do.
      • isQueryable

        public boolean isQueryable()
        Specified by:
        isQueryable in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        Whether or not this layer can be queried with GetFeatureInfo requests
      • isDownloadable

        public boolean isDownloadable()
        Specified by:
        isDownloadable in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        Whether or not this layer can be downloaded in CSV/CoverageJSON format
      • isDisabled

        public boolean isDisabled()
        Specified by:
        isDisabled in interface uk.ac.rdg.resc.edal.graphics.utils.EnhancedVariableMetadata
        Returns:
        Whether this layer is disabled