Package com.graphhopper.reader.dem
Class HeightTile
java.lang.Object
com.graphhopper.reader.dem.HeightTile
One rectangle of height data from Shuttle Radar Topography Mission.
- Author:
- Peter Karich
-
Constructor Summary
ConstructorsConstructorDescriptionHeightTile(int minLat, int minLon, int width, int height, double precision, int horizontalDegree, int verticalDegree) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetHeight(double lat, double lon) getImageFromArray(int[] pixels, int width, int height) booleanprotected BufferedImagemakeARGB()setInterpolate(boolean interpolate) setSeaLevel(boolean b) voidtoString()
-
Constructor Details
-
HeightTile
public HeightTile(int minLat, int minLon, int width, int height, double precision, int horizontalDegree, int verticalDegree)
-
-
Method Details
-
setInterpolate
-
isSeaLevel
public boolean isSeaLevel() -
setSeaLevel
-
getHeight
public double getHeight(double lat, double lon) -
toImage
- Throws:
IOException
-
makeARGB
-
getImageFromArray
-
toString
-