uk.me.parabola.mkgmap.reader.dem
Class DEM
java.lang.Object
uk.me.parabola.mkgmap.reader.dem.DEM
- Direct Known Subclasses:
- GeoTiffDEM, HGTDEM
public abstract class DEM
- extends java.lang.Object
Create contour lines using an algorithm similar to that described in An
Adaptive Grid Contouring Algorithm by Downing and Zoraster.
Field Summary |
protected static double |
delta
|
protected int |
lat
|
protected int |
lon
|
protected static int |
M
|
protected static int |
N
|
protected static double |
res
|
Constructor Summary |
DEM()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delta
protected static final double delta
- See Also:
- Constant Field Values
M
protected static int M
N
protected static int N
res
protected static double res
lat
protected int lat
lon
protected int lon
DEM
public DEM()
ele
protected abstract double ele(int x,
int y)
read
protected abstract void read(int minLon,
int minLat,
int maxLon,
int maxLat)
createContours
public static void createContours(LoadableMapDataSource mapData,
EnhancedProperties config)
gradient
protected double gradient(double lat,
double lon,
double[] grad)
elevation
protected double elevation(double lat,
double lon)
elevation
protected double elevation(int x,
int y)