public class DTMGrid
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) java.nio.FloatBuffer |
arrH
All heights, line by line, from upper left.
|
private long |
cols |
private double |
cosAngle |
private static int[] |
neighCellIx |
private OriginData |
origin |
private long |
rows |
private double |
sinAngle |
private double |
space |
private double |
ul_lat |
private double |
ul_lon |
private double |
ul_x |
private double |
ul_y |
| Constructor and Description |
|---|
DTMGrid(int rows,
int cols)
Create grid and allocate data
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCols() |
double |
getInterpolatedAltitude(double lat,
double lng)
Compute interpolated value for a position
|
long |
getRows() |
float[] |
getSurfacePlane(float x,
float y,
float z)
Compute plane equation for the closest point in a DTM surface.
|
float |
gridToWorldX(float x_grid,
float y_grid) |
float |
gridToWorldY(float x_grid,
float y_grid) |
float |
gridValue(int x_i,
int y_i)
Find value of a grid cell
|
(package private) void |
setCoordinateParams(double upperLeftN,
double upperLeftE,
double space)
Set grid position (given in UTM33/ETRS89) and compute geodetic data
|
void |
setOrigin(OriginData origin) |
float |
worldToGridX(float x_grid,
float y_grid) |
float |
worldToGridY(float x_grid,
float y_grid) |
private long rows
private long cols
java.nio.FloatBuffer arrH
private double ul_lat
private double ul_lon
private double ul_x
private double ul_y
private double cosAngle
private double sinAngle
private double space
private OriginData origin
private static int[] neighCellIx
DTMGrid(int rows,
int cols)
rows - Number of rowscols - Number of columnsvoid setCoordinateParams(double upperLeftN,
double upperLeftE,
double space)
upperLeftN - northing position of upper left cornerupperLeftE - easting position of upper left cornerspace - horizontal spacing of gridpublic void setOrigin(OriginData origin)
public float gridValue(int x_i,
int y_i)
x_i - column indexy_i - row indexpublic double getInterpolatedAltitude(double lat,
double lng)
lat - latitude of positionlng - longitude of positionpublic float[] getSurfacePlane(float x,
float y,
float z)
x - coordiante of pointy - coordiante of pointz - coordiante of pointTriangle.pointTriangle(float[], float[], float[], float[], float[])public float gridToWorldX(float x_grid,
float y_grid)
public float gridToWorldY(float x_grid,
float y_grid)
public float worldToGridX(float x_grid,
float y_grid)
public float worldToGridY(float x_grid,
float y_grid)
public long getRows()
public long getCols()