HiRISE

HiRISE.HiCat.Utilities
Class Shift_Suggestion_Coordinates

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

public class Shift_Suggestion_Coordinates
extends Object

A class for shifting suggestion coordinates.

Version:
1.2
Author:
Rodney Heyd UA/PIRL

Field Summary
static String DEFAULT_CONFIGURATION_FILENAME
           
static int EXIT_COMMAND_LINE_SYNTAX_ERROR
           
static int EXIT_DATABASE_ERROR
           
static int EXIT_SUCCESS
           
static String ID
           
 
Constructor Summary
Shift_Suggestion_Coordinates(String configuration_file)
           
 
Method Summary
static void main(String[] arguments)
           
 boolean Noop()
           
 void Noop(boolean noop)
           
 boolean shift_roi_to_center_coordinates(int suggestion_id)
          Shift the coordinates of the Region of Interest of the given suggestion to match the center latitude and longitude already recorded in the database.
 boolean Verbose()
           
 void Verbose(boolean verbose)
           
 
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

EXIT_SUCCESS

public static final int EXIT_SUCCESS
See Also:
Constant Field Values

EXIT_COMMAND_LINE_SYNTAX_ERROR

public static final int EXIT_COMMAND_LINE_SYNTAX_ERROR
See Also:
Constant Field Values

EXIT_DATABASE_ERROR

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

Shift_Suggestion_Coordinates

public Shift_Suggestion_Coordinates(String configuration_file)
                             throws Database_Exception,
                                    Configuration_Exception
Throws:
Database_Exception
Configuration_Exception
Method Detail

shift_roi_to_center_coordinates

public boolean shift_roi_to_center_coordinates(int suggestion_id)
                                        throws Database_Exception
Shift the coordinates of the Region of Interest of the given suggestion to match the center latitude and longitude already recorded in the database. The coordinates of the roi will be shifted by the difference between the recorded center coordinates and the calculated centroid of the roi.

Parameters:
suggestion_id -
Returns:
true if the shift was successful, false otherwise.
Throws:
Database_Exception

Verbose

public void Verbose(boolean verbose)

Verbose

public boolean Verbose()

Noop

public void Noop(boolean noop)

Noop

public boolean Noop()

main

public static void main(String[] arguments)
Parameters:
arguments -

HiRISE

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