com.neatech.climbplan.geographicinformationgathering
Class MapOperations

java.lang.Object
  extended by com.neatech.climbplan.geographicinformationgathering.MapOperations

public class MapOperations
extends Object


Field Summary
static double ARCSECOND_TO_DEGREE
           
private  org.geotools.coverage.grid.GridCoverage2D gcElevation
           
private  org.geotools.coverage.grid.GridCoverage2D gcVisual
           
private static double INC_STEP
           
private static org.apache.log4j.Logger logger
           
private  MapModel map
           
static String MAPS_FOLDER
           
static String SHAPE_FILES_FOLDES
           
 
Constructor Summary
MapOperations(MapModel map)
           
 
Method Summary
 double evaluatePoint(WorldPoint wp)
           
 String[] getElevationInfo()
           
 org.geotools.coverage.grid.GridCoverage2D getElevationLayer()
           
private  void getPeekAndLowest(WorldPoint peek, WorldPoint lowest)
           
 String[] getVisualInfo()
           
 org.geotools.coverage.grid.GridCoverage2D getVisualLayer()
           
 boolean isElevationLayerLoaded()
           
 boolean isVisualLayerLoaded()
           
 void mapChanged(MapModel map)
           
private  org.geotools.coverage.grid.GridCoverage2D readDTED(String path)
           
 org.geotools.coverage.grid.GridCoverage2D readElevationLayer()
           
private  org.geotools.coverage.grid.GridCoverage2D readGeoTiff(String path)
           
 void readVector(uk.ac.leeds.ccg.geotools.Viewer view, JTextArea textArea)
           
 org.geotools.coverage.grid.GridCoverage2D readVisualLayer()
           
private  void setMap(MapModel map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

INC_STEP

private static final double INC_STEP
See Also:
Constant Field Values

ARCSECOND_TO_DEGREE

public static final double ARCSECOND_TO_DEGREE
See Also:
Constant Field Values

MAPS_FOLDER

public static final String MAPS_FOLDER
See Also:
Constant Field Values

SHAPE_FILES_FOLDES

public static final String SHAPE_FILES_FOLDES
See Also:
Constant Field Values

map

private MapModel map

gcVisual

private org.geotools.coverage.grid.GridCoverage2D gcVisual

gcElevation

private org.geotools.coverage.grid.GridCoverage2D gcElevation
Constructor Detail

MapOperations

public MapOperations(MapModel map)
Method Detail

mapChanged

public void mapChanged(MapModel map)

setMap

private void setMap(MapModel map)

getVisualLayer

public org.geotools.coverage.grid.GridCoverage2D getVisualLayer()

getElevationLayer

public org.geotools.coverage.grid.GridCoverage2D getElevationLayer()

readGeoTiff

private org.geotools.coverage.grid.GridCoverage2D readGeoTiff(String path)

readDTED

private org.geotools.coverage.grid.GridCoverage2D readDTED(String path)

getPeekAndLowest

private void getPeekAndLowest(WorldPoint peek,
                              WorldPoint lowest)

evaluatePoint

public double evaluatePoint(WorldPoint wp)

readElevationLayer

public org.geotools.coverage.grid.GridCoverage2D readElevationLayer()

isElevationLayerLoaded

public boolean isElevationLayerLoaded()

getElevationInfo

public String[] getElevationInfo()

readVisualLayer

public org.geotools.coverage.grid.GridCoverage2D readVisualLayer()

isVisualLayerLoaded

public boolean isVisualLayerLoaded()

getVisualInfo

public String[] getVisualInfo()

readVector

public void readVector(uk.ac.leeds.ccg.geotools.Viewer view,
                       JTextArea textArea)