Package gov.nasa.worldwind.terrain
Class LocalElevationModel.LocalTile
- java.lang.Object
-
- gov.nasa.worldwind.terrain.LocalElevationModel.LocalTile
-
- Enclosing class:
- LocalElevationModel
protected static class LocalElevationModel.LocalTile extends java.lang.Object
An internal class that represents one elevation raster in the elevation model.
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Modifier Constructor Description protected
LocalTile(Sector sector, double missingDataFlag, int tileWidth, int tileHeight, BufferWrapper elevations, java.lang.Double minEl, java.lang.Double maxEl)
Constructs a new elevations tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
sector
protected final Sector sector
The sector the tile covers.
-
tileWidth
protected final int tileWidth
The number of elevation values in a row of the raster.
-
tileHeight
protected final int tileHeight
The number of rows in the raster.
-
minElevation
protected double minElevation
The minimum elevation contained in this tile's raster.
-
maxElevation
protected double maxElevation
The maximum elevation contained in this tile's raster.
-
missingDataFlag
protected final double missingDataFlag
The elevation model's missing data flag.
-
elevations
protected final BufferWrapper elevations
The elevations.
-
-
Constructor Detail
-
LocalTile
protected LocalTile(Sector sector, double missingDataFlag, int tileWidth, int tileHeight, BufferWrapper elevations, java.lang.Double minEl, java.lang.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.
-
-