Class WMSBasicElevationModel

    • Constructor Detail

      • WMSBasicElevationModel

        public WMSBasicElevationModel​(AVList params)
      • WMSBasicElevationModel

        public WMSBasicElevationModel​(org.w3c.dom.Element domElement,
                                      AVList params)
      • WMSBasicElevationModel

        public WMSBasicElevationModel​(java.lang.String restorableStateInXml)
    • Method Detail

      • wmsGetParamsFromDocument

        protected static AVList wmsGetParamsFromDocument​(org.w3c.dom.Element domElement,
                                                         AVList params)
      • wmsSetFallbacks

        protected static void wmsSetFallbacks​(AVList params)
      • getWMSElevationModelConfigParams

        public static AVList getWMSElevationModelConfigParams​(WMSCapabilities caps,
                                                              java.lang.String[] formatOrderPreference,
                                                              AVList params)
        Parses WMSBasicElevationModel configuration parameters from a specified WMS Capabilities source. This writes output as key-value pairs to params. Supported key and parameter names are:
        Parameters
        ParameterValueType
        AVKey.ELEVATION_MAXWMS layer's maximum extreme elevationDouble
        AVKey.ELEVATION_MINWMS layer's minimum extreme elevationDouble
        AVKey.DATA_TYPETranslate WMS layer's image format to a matching data typeString
        This also parses common WMS layer parameters by invoking DataConfigurationUtils.getWMSLayerConfigParams(gov.nasa.worldwind.ogc.wms.WMSCapabilities, String[], gov.nasa.worldwind.avlist.AVList).
        Parameters:
        caps - the WMS Capabilities source to parse for WMSBasicElevationModel configuration parameters.
        formatOrderPreference - an ordered array of preferred image formats, or null to use the default format.
        params - the output key-value pairs which recieve the WMSBasicElevationModel configuration parameters.
        Returns:
        a reference to params.
        Throws:
        java.lang.IllegalArgumentException - if either the document or params are null, or if params does not contain the required key-value pairs.
        WWRuntimeException - if the Capabilities document does not contain any of the required information.
      • createConfigurationDocument

        protected org.w3c.dom.Document createConfigurationDocument​(AVList params)
        Appends WMS basic elevation model configuration elements to the superclass configuration document.
        Overrides:
        createConfigurationDocument in class BasicElevationModel
        Parameters:
        params - configuration parameters describing this WMS basic elevation model.
        Returns:
        a WMS basic elevation model configuration document.
      • composeElevations

        public void composeElevations​(Sector sector,
                                      java.util.List<? extends LatLon> latlons,
                                      int tileWidth,
                                      double[] buffer)
                               throws java.lang.Exception
        Description copied from interface: ElevationModel
        Determines the elevations at specified locations within a specified Sector.
        Specified by:
        composeElevations in interface ElevationModel
        Overrides:
        composeElevations in class AbstractElevationModel
        Parameters:
        sector - the sector containing the locations.
        latlons - the locations for which to return elevations.
        tileWidth - the number of locations that comprise one row in the latlons argument.
        buffer - a buffer in which to put the elevations. The buffer must have at least as many elements as the number of specified locations.
        Throws:
        java.lang.Exception - if the method fails. Different elevation models may fail for different reasons.
        java.lang.IllegalArgumentException - if either the sector, list of locations or buffer is null, if the buffer size is not at least as large as the location list, or the tile width is greater than the locations list length or less than 1.
      • wmsRestorableStateToParams

        protected static AVList wmsRestorableStateToParams​(java.lang.String stateInXml)