com.c5corp.c5utm.util
Class BuildPointStatsFromDb

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

public class BuildPointStatsFromDb
extends java.lang.Object

This utility fills the UTM_POINT_STATS table in the C5 landscape database from data in the DEM_METADATA and UTM_COORS tables. (The MODE table is populated as well.) This program is semi-smart. It sets the DEM_METADATA.point_stats 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. (BuildPointStatsFromFiles 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.point_stats attribute to 2, and will no longer try to process that area. The DEM_METADATA.point_stats attribute is 0 after new dems have been added to the database.

Since:
2.0
Author:
Brett Stalbaum Copyright 2002-2006 see LICENSE.txt and UCSD_LICENSE.txt
See Also:
BuildPointStatsFromFiles, BuildPointStats

Constructor Summary
BuildPointStatsFromDb(boolean verbose)
          Construction processes UTM_COORS data into UTM_1K_GRID_DATA and UTM_POINT_STATS and MODE tables.
 
Method Summary
static void BuildPointStats(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

BuildPointStatsFromDb

public BuildPointStatsFromDb(boolean verbose)
Construction processes UTM_COORS 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

BuildPointStats

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

Parameters:
verbose - true for verbose output