/*
Copyright (C) 2001, 2006 United States Government
as represented by the Administrator of the
National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.layers.Mars;
import gov.nasa.worldwind.avlist.*;
import gov.nasa.worldwind.geom.*;
import gov.nasa.worldwind.layers.BasicTiledImageLayer;
import gov.nasa.worldwind.util.*;
import java.util.GregorianCalendar;
/**
* Layer for Mars THEMIS (ASU) dataset.
* @author Patrick Murris
* @version $Id: THEMISLayer.java 5183 2008-04-26 02:10:13Z patrickmurris $
*/
public class THEMISLayer extends BasicTiledImageLayer
{
public THEMISLayer()
{
super(makeLevels());
this.setForceLevelZeroLoads(true);
this.setRetainLevelZeroTiles(true);
}
private static LevelSet makeLevels()
{
AVList params = new AVListImpl();
params.setValue(AVKey.TILE_WIDTH, 512);
params.setValue(AVKey.TILE_HEIGHT, 512);
params.setValue(AVKey.DATA_CACHE_NAME, "Mars/THEMIS");
params.setValue(AVKey.SERVICE, "http://worldwind25.arc.nasa.gov/mars/mars.aspx");
params.setValue(AVKey.DATASET_NAME, "thm");
params.setValue(AVKey.FORMAT_SUFFIX, ".dds");
params.setValue(AVKey.NUM_LEVELS, 11);
params.setValue(AVKey.NUM_EMPTY_LEVELS, 0);
params.setValue(AVKey.LEVEL_ZERO_TILE_DELTA, new LatLon(Angle.fromDegrees(36d), Angle.fromDegrees(36d)));
params.setValue(AVKey.SECTOR, Sector.FULL_SPHERE);
return new LevelSet(params);
}
@Override
public String toString()
{
return Logging.getMessage("layers.Mars.THEMIS.Name");
}
}