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
.*;
14 import java
.util
.GregorianCalendar
;
18 * @version $Id: LandsatI3.java 2471 2007-07-31 21:50:57Z tgaskins $
20 public class LandsatI3
extends BasicTiledImageLayer
25 this.setUseTransparentTextures(true);
28 private static LevelSet
makeLevels()
30 AVList params
= new AVListImpl();
32 params
.setValue(AVKey
.TILE_WIDTH
, 512);
33 params
.setValue(AVKey
.TILE_HEIGHT
, 512);
34 params
.setValue(AVKey
.DATA_CACHE_NAME
, "Earth/NASA LandSat I3");
35 params
.setValue(AVKey
.SERVICE
, "http://worldwind25.arc.nasa.gov/lstile/lstile.aspx");
36 params
.setValue(AVKey
.DATASET_NAME
, "esat_worlddds");
37 params
.setValue(AVKey
.FORMAT_SUFFIX
, ".dds");
38 params
.setValue(AVKey
.NUM_LEVELS
, 10);
39 params
.setValue(AVKey
.NUM_EMPTY_LEVELS
, 4);
40 params
.setValue(AVKey
.LEVEL_ZERO_TILE_DELTA
, new LatLon(Angle
.fromDegrees(36d
), Angle
.fromDegrees(36d
)));
41 params
.setValue(AVKey
.SECTOR
, Sector
.FULL_SPHERE
);
42 params
.setValue(AVKey
.EXPIRY_TIME
, new GregorianCalendar(2007, 2, 22).getTimeInMillis());
44 return new LevelSet(params
);
48 public String
toString()
50 return Logging
.getMessage("layers.Earth.LandsatI3Layer.Name");