HiRISE

HiRISE.HiCat.Utilities
Class Set_Cubenorm_Tags

java.lang.Object
  extended by HiRISE.HiCat.Utilities.Set_Cubenorm_Tags

public class Set_Cubenorm_Tags
extends Object

A small application for translating cubenorming information stored in PVL files into Tags stored in the database.

Needed Files: A configuration file is needed for database connectivity (Use the -C command line option to set the database configuration file).
Tag definitionfile (found in /HiRISE/Configuration/HiValli/tags.conf), which contains the list and definitions of allowable tags.

Version:
1.3
Author:
Rodney Heyd UA/HiRISE/PIRL
See Also:
Tagger

Field Summary
static String DEFAULT_CONFIGURATION_FILENAME
           
static String DEFAULT_TAGSONOMY_FILE
           
static int EXIT_COMMAND_LINE_SYNTAX_ERROR
           
static int EXIT_CONFIGURATION_ERROR
           
static int EXIT_DATABASE_ERROR
           
static int EXIT_IO_ERROR
           
static int EXIT_PVL_ERROR
           
static int EXIT_SUCCESS
           
static String ID
           
 
Constructor Summary
Set_Cubenorm_Tags()
          Create a Set_Cubenorm_Tags object with default configuration and tag definition files.
Set_Cubenorm_Tags(String configuration)
          Create a new Set_Cubenorm_Tags object using the specified configuration file for database connectivity.
 
Method Summary
static void main(String[] arguments)
          This is a one-off importer application for reading cubenorm information from the hiccstitch pvl configuration files and setting tags based on the information found in those files.
 int Products_Tagged()
           
 boolean set_tags(File pvl_file)
          Set Tags in the database based on the cubenorming information found in the specified pvl_file.
 void Set_Tagsonomy_File(String tagsonomy_file)
          Use a different Tagsonomy file from the default.
static void Usage(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

DEFAULT_CONFIGURATION_FILENAME

public static final String DEFAULT_CONFIGURATION_FILENAME
See Also:
Constant Field Values

DEFAULT_TAGSONOMY_FILE

public static final String DEFAULT_TAGSONOMY_FILE
See Also:
Constant Field Values

EXIT_SUCCESS

public static final int EXIT_SUCCESS
See Also:
Constant Field Values

EXIT_CONFIGURATION_ERROR

public static final int EXIT_CONFIGURATION_ERROR
See Also:
Constant Field Values

EXIT_DATABASE_ERROR

public static final int EXIT_DATABASE_ERROR
See Also:
Constant Field Values

EXIT_PVL_ERROR

public static final int EXIT_PVL_ERROR
See Also:
Constant Field Values

EXIT_IO_ERROR

public static final int EXIT_IO_ERROR
See Also:
Constant Field Values

EXIT_COMMAND_LINE_SYNTAX_ERROR

public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
See Also:
Constant Field Values
Constructor Detail

Set_Cubenorm_Tags

public Set_Cubenorm_Tags()
                  throws Configuration_Exception,
                         Database_Exception
Create a Set_Cubenorm_Tags object with default configuration and tag definition files.

Throws:
Configuration_Exception
Database_Exception

Set_Cubenorm_Tags

public Set_Cubenorm_Tags(String configuration)
                  throws Configuration_Exception,
                         Database_Exception
Create a new Set_Cubenorm_Tags object using the specified configuration file for database connectivity.

Parameters:
configuration - - A PVL configuration file containing database connection parameters.
Throws:
Configuration_Exception
Database_Exception
Method Detail

set_tags

public boolean set_tags(File pvl_file)
                 throws PVL_Exception,
                        Database_Exception
Set Tags in the database based on the cubenorming information found in the specified pvl_file.

Parameters:
pvl_file - - The PVL file containing cubnorming information.
Returns:
true if the tagging process was succesfull, false otherwise.
Throws:
PVL_Exception
Database_Exception

Products_Tagged

public int Products_Tagged()
Returns:
The number of products that were tagged during the current run.

Set_Tagsonomy_File

public void Set_Tagsonomy_File(String tagsonomy_file)
                        throws Configuration_Exception
Use a different Tagsonomy file from the default. This should be set prior to calling the set_tags(File) method.

Parameters:
tagsonomy_file -
Throws:
Configuration_Exception

main

public static void main(String[] arguments)
This is a one-off importer application for reading cubenorm information from the hiccstitch pvl configuration files and setting tags based on the information found in those files. Once the cubenorming application has been completed, this utility will only need to be run once.

Parameters:
arguments -

Usage

public static void Usage(int status)

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona