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 TypeMethodDescriptiondouble
getHeight
(double lat, double lon) getImageFromArray
(int[] pixels, int width, int height) boolean
protected BufferedImage
makeARGB()
setInterpolate
(boolean interpolate) setSeaLevel
(boolean b) void
toString()
-
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
-