2 Copyright (C) 2001, 2006 United States Government
3 as represented by the Administrator of the
4 National Aeronautics and Space Administration.
7 package gov
.nasa
.worldwind
.layers
.Earth
;
9 import gov
.nasa
.worldwind
.avlist
.*;
10 import gov
.nasa
.worldwind
.geom
.*;
11 import gov
.nasa
.worldwind
.layers
.BasicTiledImageLayer
;
12 import gov
.nasa
.worldwind
.util
.*;
16 * @version $Id: USGSUrbanAreaOrtho.java 2683 2007-08-25 06:45:31Z tgaskins $
18 public class USGSUrbanAreaOrtho
extends BasicTiledImageLayer
20 public USGSUrbanAreaOrtho()
23 this.setMaxActiveAltitude(10e3d
);
24 this.setSplitScale(0.8);
25 // this.setShowImageTileOutlines(true);
26 // this.setDrawBoundingVolumes(true);
29 private static LevelSet
makeLevels()
31 AVList params
= new AVListImpl();
33 params
.setValue(AVKey
.TILE_WIDTH
, 512);
34 params
.setValue(AVKey
.TILE_HEIGHT
, 512);
35 params
.setValue(AVKey
.DATA_CACHE_NAME
, "Earth/USGS Urban Area Ortho");
36 params
.setValue(AVKey
.SERVICE
, "http://worldwind25.arc.nasa.gov/tile/tile.aspx");
37 params
.setValue(AVKey
.DATASET_NAME
, "104dds");
38 params
.setValue(AVKey
.FORMAT_SUFFIX
, ".dds");
39 params
.setValue(AVKey
.NUM_LEVELS
, 12);
40 params
.setValue(AVKey
.NUM_EMPTY_LEVELS
, 2);
42 Angle levelZeroDelta
= Angle
.fromDegrees(3.2);
43 params
.setValue(AVKey
.LEVEL_ZERO_TILE_DELTA
, new LatLon(levelZeroDelta
, levelZeroDelta
));
45 params
.setValue(AVKey
.SECTOR
, new Sector(Angle
.fromDegrees(17.84), Angle
.fromDegrees(71.55),
46 Angle
.fromDegrees(-168.67), Angle
.fromDegrees(-65.15)));
48 return new LevelSet(params
);
52 public String
toString()
54 return Logging
.getMessage("layers.Earth.USGSUrbanAreaOrtho.Name");