/**
         * Constructs a downloader to retrieve elevations not currently available in a specified file store.
         * <p/>
         * The thread returned is not started during construction, the caller must start the thread.
         *
         * @param elevationModel the elevation model for which to download elevations.
         * @param sector         the sector to download data for. This value is final.
         * @param resolution     the target resolution, provided in radians of latitude per texel. This value is final.
         * @param fileStore      the file store in which to place the downloaded elevations.
         * @param listener       an optional retrieval listener. May be null.
         *
         * @throws ArgumentException if either the elevation model, the sector or file store are null, or the
         *                                  resolution is less than zero.
         */
        public BasicElevationModelBulkDownloader(BasicElevationModel elevationModel, Sector sector, double resolution,
                                                 FileStore fileStore, BulkRetrievalListener listener)
        {
            // Arguments checked in parent constructor
            super(elevationModel, sector, resolution, fileStore, listener);

            this.elevationModel = elevationModel;
            this.level          = computeLevelForResolution(sector, resolution);
        }
Example #2
0
        protected static AVList wmsGetParamsFromDocument(XElement domElement, AVList parameters)
        {
            if (domElement == null)
            {
                String message = Logging.getMessage("nullValue.DocumentIsNull");
                Logging.logger().severe(message);
                throw new ArgumentException(message);
            }

            if (parameters == null)
            {
                parameters = new AVListImpl();
            }

            DataConfigurationUtils.getWMSLayerConfigParams(domElement, parameters);
            BasicElevationModel.getBasicElevationModelConfigParams(domElement, parameters);
            wmsSetFallbacks(parameters);

            parameters.setValue(AVKey.TILE_URL_BUILDER, new URLBuilder(parameters.getStringValue(AVKey.WMS_VERSION), parameters));

            return(parameters);
        }