NASA World Wind

gov.nasa.worldwind.terrain
Class LocalElevationModel.LocalTile

java.lang.Object
  extended by gov.nasa.worldwind.terrain.LocalElevationModel.LocalTile
Enclosing class:
LocalElevationModel

protected static class LocalElevationModel.LocalTile
extends Object

An internal class that represents one elevation raster in the elevation model.


Field Summary
protected  BufferWrapper elevations
          The elevations.
protected  double maxElevation
          The maximum elevation contained in this tile's raster.
protected  double minElevation
          The minimum elevation contained in this tile's raster.
protected  double missingDataFlag
          The elevation model's missing data flag.
protected  Sector sector
          The sector the tile covers.
protected  int tileHeight
          The number of rows in the raster.
protected  int tileWidth
          The number of elevation values in a row of the raster.
 
Constructor Summary
protected LocalElevationModel.LocalTile(Sector sector, double missingDataFlag, int tileWidth, int tileHeight, BufferWrapper elevations, Double minEl, Double maxEl)
          Constructs a new elevations tile.
 
Method Summary
protected  void computeMinMaxElevations()
          Determines the minimum and maximum elevations of this tile.
protected  boolean isMissingData(double value)
          Determines whether a value signifies missing data -- voids.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elevations

protected final BufferWrapper elevations
The elevations.


maxElevation

protected double maxElevation
The maximum elevation contained in this tile's raster.


minElevation

protected double minElevation
The minimum elevation contained in this tile's raster.


missingDataFlag

protected final double missingDataFlag
The elevation model's missing data flag.


sector

protected final Sector sector
The sector the tile covers.


tileHeight

protected final int tileHeight
The number of rows in the raster.


tileWidth

protected final int tileWidth
The number of elevation values in a row of the raster.

Constructor Detail

LocalElevationModel.LocalTile

protected LocalElevationModel.LocalTile(Sector sector,
                                        double missingDataFlag,
                                        int tileWidth,
                                        int tileHeight,
                                        BufferWrapper elevations,
                                        Double minEl,
                                        Double maxEl)
Constructs a new elevations tile.

Parameters:
sector - the sector the tile covers.
missingDataFlag - the elevation model's missing data flag.
tileWidth - the number of elevation values in a row of this tile's elevation raster.
tileHeight - the number of rows in this tile's elevation raster.
elevations - the elevations.
minEl - the minimum elevation of this tile. May be null, in which case the minimum is determined.
maxEl - the maximum elevation of this tile. May be null, in which case the maximum is determined.
Method Detail

computeMinMaxElevations

protected void computeMinMaxElevations()
Determines the minimum and maximum elevations of this tile.


isMissingData

protected boolean isMissingData(double value)
Determines whether a value signifies missing data -- voids. This method not only tests the value againsy the tile's missing data flag, it also tests for its being within range of the tile's minimum and maximum values. The values also tested for the magic value -32767, which for some reason is commonly used but not always identified in GeoTiff files.

Parameters:
value - the value to test.
Returns:
true if the value is this tile's missing data signal, or if it is outside the min/max range of the tile, or if it's equal to -32767.

NASA World Wind