Class HeightTile

java.lang.Object
com.graphhopper.reader.dem.HeightTile

public class HeightTile extends Object
One rectangle of height data from Shuttle Radar Topography Mission.

Author:
Peter Karich
  • Constructor Details

    • HeightTile

      public HeightTile(int minLat, int minLon, int width, int height, double precision, int horizontalDegree, int verticalDegree)
  • Method Details

    • setInterpolate

      public HeightTile setInterpolate(boolean interpolate)
    • isSeaLevel

      public boolean isSeaLevel()
    • setSeaLevel

      public HeightTile setSeaLevel(boolean b)
    • getHeight

      public double getHeight(double lat, double lon)
    • toImage

      public void toImage(String imageFile) throws IOException
      Throws:
      IOException
    • makeARGB

      protected BufferedImage makeARGB()
    • getImageFromArray

      public BufferedImage getImageFromArray(int[] pixels, int width, int height)
    • toString

      public String toString()
      Overrides:
      toString in class Object