com.c5corp.c5utm.util
Class Build1KGridFromDb

java.lang.Object
  extended by com.c5corp.c5utm.util.Build1KGridFromDb

public class Build1KGridFromDb
extends java.lang.Object

This utility fills the UTM_1K_GRID_DATA table in the C5 landscape database from data in the DEM_METADATA and UTM_COORS tables. (The UTM_POINT_STATS table and MODE are populated as well.) (The actual records are stored in then UTM_POINT_STATS table.) This program is semi-smart. It sets the DEM_METADATA.1K_grid attibute to 1 (partially processed) if the area is successfully processed, but there is missing data around the edges due to the lack of surrounding elevations from adjacent dems that are needed to calculate the area completely. If the attribute is already set to 1, the algorithm attempts to recalculate only the edges of these areas on subsequent runs. (Build1KGridFromFiles also processes the attribute to level 1.) If this script can determine that the entire dem has been processed, then it updates the DEM_METADATA.1K_grid attribute to 2, and will no longer try to process that area. The DEM_METADATA.1K_grid attribute is 0 after new dems have been added to the database.

Since:
1.0.3
Author:
Brett Stalbaum Copyright 2002-2006 see LICENSE.txt and UCSD_LICENSE.txt
See Also:
Build1KGridFromFiles, Build1KGridStats

Constructor Summary
Build1KGridFromDb(boolean verbose)
          Construction processes UTM_COORDS data into UTM_1K_GRID_DATA and UTM_POINT_STATS and MODE tables.
 
Method Summary
static void Build1KGrid(boolean verbose)
          Run from another class.
static void main(java.lang.String[] args)
          Run from the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Build1KGridFromDb

public Build1KGridFromDb(boolean verbose)
Construction processes UTM_COORDS data into UTM_1K_GRID_DATA and UTM_POINT_STATS and MODE tables.

Parameters:
verbose - writes messages to System.out if true.
Method Detail

main

public static void main(java.lang.String[] args)
Run from the command line

Parameters:
args - main

Build1KGrid

public static void Build1KGrid(boolean verbose)
Run from another class. Verbose if true argument.

Parameters:
verbose - true for verbose output