com.c5corp.DEMconvert.filters
Class Dem2C5UTM

java.lang.Object
  extended by com.c5corp.DEMconvert.C5DemAbstractFilter
      extended by com.c5corp.DEMconvert.filters.Dem2C5UTM
All Implemented Interfaces:
C5DemConstants

public final class Dem2C5UTM
extends C5DemAbstractFilter
implements C5DemConstants

Dem2C5UTM.java - part of C5UTM database C5 DEM Tool 1.0.3b filter that processes a dem to update the C5UTM database (uses java JDBC) Dem2C5UTM.java adds UTM points to the C5UTM (C5 Landscape) db. Refer to sql directory for info on the data model. This version copies data from a dem file directly into the database. The writeHeader method updates the DEM_METADATA table, then issues a report to the 'receipt' file in the RECEIPTS directory or pwd. The writeData method updates the UTM_COORDS table and similarly reports to the text reciept. The db_url and jdbc driver can be changed in the conf/add2c5utm.conf file

Since:
1.0
Author:
Brett Stalbaum Copyright 2002-2006 see LICENSE.txt and UCSD_LICENSE.txt

Field Summary
 
Fields inherited from interface com.c5corp.c5dem.C5DemConstants
copy, E_BIT, FEETTOMETERS, hdatum, METERSTOFEET, N_BIT, NE_BIT, NW_BIT, S_BIT, SE_BIT, SW_BIT, system, units, vdatum, W_BIT
 
Constructor Summary
Dem2C5UTM()
          default constuctor - required by the newInstance() method of the Class class such that this class can be dynamically loaded.
Dem2C5UTM(java.lang.String in_fileame, java.lang.String backoutID)
          This constructor is typically used by the main method in this class when invoked from the command line.
 
Method Summary
 java.lang.String getFilterInfo()
          A method that returns a string containing information about the filter.
 java.lang.String getOutputPath()
          Returns a relative path describing the location of the output.
static void main(java.lang.String[] args)
           
 void setOutputPath(java.lang.String path)
          sets the path to the output file
 java.lang.String toString()
          overrides java.lang.Object.toString()
 void writeData(Dem dem, java.io.PrintWriter out)
          A method for output of the formated data (overrides C5DemAbstractFilter)
 void writeHeader(Dem dem, java.io.PrintWriter out)
          A method for output of metadata to the file (overrides C5DemAbstractFilter)
 
Methods inherited from class com.c5corp.DEMconvert.C5DemAbstractFilter
openOutputFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dem2C5UTM

public Dem2C5UTM()
default constuctor - required by the newInstance() method of the Class class such that this class can be dynamically loaded.


Dem2C5UTM

public Dem2C5UTM(java.lang.String in_fileame,
                 java.lang.String backoutID)
This constructor is typically used by the main method in this class when invoked from the command line.

Parameters:
in_fileame - the imput file name
backoutID - the backout id
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - main

writeHeader

public void writeHeader(Dem dem,
                        java.io.PrintWriter out)
A method for output of metadata to the file (overrides C5DemAbstractFilter)

Specified by:
writeHeader in class C5DemAbstractFilter
Parameters:
dem - A Dem.
out - Where to write the data.

writeData

public void writeData(Dem dem,
                      java.io.PrintWriter out)
A method for output of the formated data (overrides C5DemAbstractFilter)

Specified by:
writeData in class C5DemAbstractFilter
Parameters:
dem - A Dem.
out - Where to write the data.

getFilterInfo

public java.lang.String getFilterInfo()
A method that returns a string containing information about the filter.

Specified by:
getFilterInfo in class C5DemAbstractFilter
Returns:
the string info about the filter

getOutputPath

public java.lang.String getOutputPath()
Returns a relative path describing the location of the output.

Overrides:
getOutputPath in class C5DemAbstractFilter
Returns:
the output file path

setOutputPath

public void setOutputPath(java.lang.String path)
sets the path to the output file

Parameters:
path - sets the path to the output file

toString

public java.lang.String toString()
overrides java.lang.Object.toString()

Overrides:
toString in class C5DemAbstractFilter