Worldwind public release 0.2.1
[worldwind-tracker.git] / gov / nasa / worldwind / globes / EarthElevationModel.java
bloba864fa3030e2678e10485b4168d3b0f5d857cea2
1 /*
2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
5 All Rights Reserved.
6 */
7 package gov.nasa.worldwind.globes;
9 import gov.nasa.worldwind.geom.*;
10 import gov.nasa.worldwind.*;
12 /**
13 * @author Tom Gaskins
14 * @version $Id: EarthElevationModel.java 1984 2007-06-09 00:33:22Z tgaskins $
16 public class EarthElevationModel extends BasicElevationModel
18 private static double HEIGHT_OF_MT_EVEREST = 8850d; // meters
19 private static double DEPTH_OF_MARIANAS_TRENCH = -11000d; // meters
21 public EarthElevationModel()
23 super(makeLevels(), DEPTH_OF_MARIANAS_TRENCH, HEIGHT_OF_MT_EVEREST);
24 this.setNumExpectedValuesPerTile(22500);
27 private static LevelSet makeLevels()
29 AVList params = new AVListImpl();
31 params.setValue(AVKey.TILE_WIDTH, 150);
32 params.setValue(AVKey.TILE_HEIGHT, 150);
33 params.setValue(AVKey.CACHE_NAME, "Earth/srtm30pluszip");
34 params.setValue(AVKey.SERVICE, "http://worldwind25.arc.nasa.gov/wwelevation/wwelevation.aspx");
35 params.setValue(AVKey.DATASET_NAME, "srtm30pluszip");
36 params.setValue(AVKey.FORMAT_SUFFIX, ".bil");
37 params.setValue(AVKey.NUM_LEVELS, 12);
38 params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
39 params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(20d), Angle.fromDegrees(20d)));
40 params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
42 return new LevelSet(params);