org.deegree.tools.rendering.dem.builder
Class DEMDatasetGenerator

java.lang.Object
  extended by org.deegree.tools.rendering.dem.builder.DEMDatasetGenerator

@Tool(value="Generates DEM multiresolution datasets from rasters, suitable for the WPVS.")
public class DEMDatasetGenerator
extends Object

Tool for generating the binary files for MultiresolutionMesh instances (MRIndex- and PatchData-BLOBs) from DEM coverages (heightfields).

Initially, the domain is divided into two right triangles. These are the root fragments of the multiresolution hierarchy. Smaller fragments (with more detail) are generated by recursively bisecting the triangles.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
DEMDatasetGenerator(AbstractRaster raster, RasterIOOptions options, int levels, int rowsPerTile, float maxZ)
          Creates a new PatchGenerator instance.
 
Method Summary
 void disposeLoadedRasterData()
           
 int getBytesPerTile()
           
 int getLevels()
           
 int getRowsPerFragment()
           
 double getTileHeight()
           
 int getTrianglesPerFragment()
           
 int getVerticesPerFragment()
           
static void main(String[] args)
          Generates a MultiresolutionMesh instance (MRIndex- and PatchData-BLOBs) from a file that contains binary short values (a regular heightfield).
 void setTileHeight(double tileHeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DEMDatasetGenerator

public DEMDatasetGenerator(AbstractRaster raster,
                           RasterIOOptions options,
                           int levels,
                           int rowsPerTile,
                           float maxZ)
                    throws SQLException,
                           IOException
Creates a new PatchGenerator instance.

Parameters:
raster - the dem raster
options - containing information on the given raster.
levels - number of levels in the generated (layered) DAG
rowsPerTile - number of rows per macro triangle (tile)
maxZ - the clipping z value.
Throws:
SQLException
IOException
Method Detail

getVerticesPerFragment

public int getVerticesPerFragment()
Returns:
the verticesPerFragment

getTrianglesPerFragment

public int getTrianglesPerFragment()
Returns:
the trianglesPerFragment

getLevels

public int getLevels()
Returns:
the levels

getRowsPerFragment

public int getRowsPerFragment()
Returns:
the rowsPerFragment

setTileHeight

public void setTileHeight(double tileHeight)
Parameters:
tileHeight - the tileHeight to set

getTileHeight

public double getTileHeight()
Returns:
the tileHeight

getBytesPerTile

public int getBytesPerTile()
Returns:
the bytesPerTile

main

public static void main(String[] args)
                 throws IOException
Generates a MultiresolutionMesh instance (MRIndex- and PatchData-BLOBs) from a file that contains binary short values (a regular heightfield).

Please see the code for the initialization of the parameters.

Parameters:
args -
Throws:
IOException

disposeLoadedRasterData

public void disposeLoadedRasterData()


Copyright © 2011. All Rights Reserved.