/*
* Copyright 2015-2017 WorldWind Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @exports EarthElevationModel
*/
define([
'../geom/Location',
'../geom/Sector',
'../globe/ElevationModel',
'../util/WmsUrlBuilder'
],
function (Location,
Sector,
ElevationModel,
WmsUrlBuilder) {
"use strict";
/**
* Constructs an Earth elevation model.
* @alias EarthElevationModel
* @constructor
* @augments ElevationModel
* @classdesc Provides elevations for Earth. Elevations are drawn from the NASA WorldWind elevation service.
*/
var EarthElevationModel = function () {
ElevationModel.call(this,
Sector.FULL_SPHERE, new Location(45, 45), 12, "application/bil16", "EarthElevations256", 256, 256);
this.displayName = "Earth Elevation Model";
this.minElevation = -11000; // Depth of Marianas Trench, in meters
this.maxElevation = 8850; // Height of Mt. Everest
this.pixelIsPoint = false; // WorldWind WMS elevation layers return pixel-as-area images
this.urlBuilder = new WmsUrlBuilder("https://worldwind26.arc.nasa.gov/elev",
"GEBCO,aster_v2,USGS-NED", "", "1.3.0");
};
EarthElevationModel.prototype = Object.create(ElevationModel.prototype);
return EarthElevationModel;
});