public class TLcdEarthElevationData extends TLcdEarthMultivaluedData
w x h
cells. Where w
and h
are respectively the number of horizontal and
vertical elevations of the elevation data.
A value of Double.NaN
indicates transparency (no elevation data available).
Some formats will provide the minimum and maximum value of the elevation data.
When not available, null
will be returned for the minimum and maximum value.
Constructor and Description |
---|
TLcdEarthElevationData(double[] aElevations,
int aWidth,
int aHeight)
Constructs a new
TLcdEarthElevationData with the specified data. |
TLcdEarthElevationData(double[] aElevations,
int aWidth,
int aHeight,
double aMinElevation,
double aMaxElevation)
Constructs a new
TLcdEarthElevationData with the specified data,
including minimum and maximum elevation values. |
Modifier and Type | Method and Description |
---|---|
double |
getElevation(int aX,
int aY)
Returns the elevation at the given position.
|
double[] |
getElevations()
Returns the array of elevation values.
|
Double |
getMaxElevation()
Gets the maximum elevation value in the data.
|
Double |
getMinElevation()
Gets the minimum elevation value in the data.
|
int |
getParameterCount()
Returns
1 . |
getHeight, getMaximumValue, getMinimumValue, getMinMaxValues, getValueAt, getValues, getValues, getWidth
public TLcdEarthElevationData(double[] aElevations, int aWidth, int aHeight)
TLcdEarthElevationData
with the specified data.aElevations
- the array of elevation values. This array should contain
aWidth x aHeight
elevation values ordered in row-major form
(e.g. the rows are put one after another)aWidth
- the number of elevation values in a rowaHeight
- the number of elevation values in a columnpublic TLcdEarthElevationData(double[] aElevations, int aWidth, int aHeight, double aMinElevation, double aMaxElevation)
TLcdEarthElevationData
with the specified data,
including minimum and maximum elevation values.aElevations
- the array of elevation values. This array should contain
aWidth x aHeight
elevation values ordered in row-major form
(e.g. the rows are put one after another)aWidth
- the number of elevation values in a rowaHeight
- the number of elevation values in a columnaMinElevation
- the minimum elevation value in the data, or null
aMaxElevation
- the maximum elevation value in the data, or null
public double[] getElevations()
public double getElevation(int aX, int aY)
aX
- The x coordinate in [0,TLcdEarthMultivaluedData.getWidth()
[.aY
- The y coordinate in [0,TLcdEarthMultivaluedData.getHeight()
[.public Double getMinElevation()
Double.NaN
indicates full transparency.null
if not availablepublic Double getMaxElevation()
Double.NaN
indicates full transparency.null
if not availablepublic int getParameterCount()
1
.getParameterCount
in class TLcdEarthMultivaluedData
1