deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.model.coverage.grid
Class TiffDEMParser

java.lang.Object
  extended by org.deegree.model.coverage.grid.TiffDEMParser

public class TiffDEMParser
extends java.lang.Object

Parses 4 channel (32Bit) tiff images as DEM and returns a float matrix containing the DEM heights

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
TiffDEMParser(java.awt.image.BufferedImage data)
           
TiffDEMParser(java.awt.image.BufferedImage data, float scale)
           
TiffDEMParser(java.awt.image.BufferedImage data, float scale, float offset)
           
TiffDEMParser(java.io.File dataFile)
           
TiffDEMParser(java.io.File dataFile, float scale)
           
TiffDEMParser(java.io.File dataFile, float scale, float offset)
           
 
Method Summary
 float[][] parse()
          returns the DEM heights as float matrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TiffDEMParser

public TiffDEMParser(java.io.File dataFile)
Parameters:
dataFile - image containing DEM data instead color information

TiffDEMParser

public TiffDEMParser(java.io.File dataFile,
                     float scale)
Parameters:
dataFile - image containing DEM data instead color information
scale - scale factor; newHeight[i][j] = height[i][j] * scale

TiffDEMParser

public TiffDEMParser(java.io.File dataFile,
                     float scale,
                     float offset)
Parameters:
dataFile - image containing DEM data instead color information
scale - scale factor; newHeight[i][j] = height[i][j] * scale
offset - height offset; newHeight[i][j] = height[i][j] + offset

TiffDEMParser

public TiffDEMParser(java.awt.image.BufferedImage data)
Parameters:
data - image containing DEM data instead color information

TiffDEMParser

public TiffDEMParser(java.awt.image.BufferedImage data,
                     float scale)
Parameters:
data - image containing DEM data instead color information
scale - scale factor; newHeight[i][j] = height[i][j] * scale

TiffDEMParser

public TiffDEMParser(java.awt.image.BufferedImage data,
                     float scale,
                     float offset)
Parameters:
data -
scale - scale factor; newHeight[i][j] = height[i][j] * scale
offset - height offset; newHeight[i][j] = height[i][j] + offset
Method Detail

parse

public float[][] parse()
returns the DEM heights as float matrix

Returns:
the DEM heights as float matrix

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org