com.mizar.oracle.spatial
Class Spatial

java.lang.Object
  extended by com.mizar.oracle.spatial.Spatial

public class Spatial
extends java.lang.Object


Constructor Summary
Spatial()
           
 
Method Summary
static java.lang.String convertDecimalLatLonToDMS(java.lang.Double LatLon, boolean latitude)
           
static java.lang.String convertDecimalLatLonToDMS(java.lang.Double LatLon, boolean latitude, int precision)
           
static java.awt.geom.Point2D getCenter(double[] range)
          THIS METHOD CURRENTLY RETURNS THE CENTER OF THE RANGE RECTANGLE IT SHOULD COMPUTE THE CENTROID
static java.awt.geom.Point2D getCenter(oracle.spatial.geometry.JGeometry geom)
          THIS METHOD CURRENTLY RETURNS THE CENTER OF THE RANGE RECTANGLE IT SHOULD COMPUTE THE CENTROID
static java.awt.geom.Point2D getFirstPoint(oracle.spatial.geometry.JGeometry geom)
           
static java.awt.geom.Point2D getLastPoint(oracle.spatial.geometry.JGeometry geom)
           
static java.awt.geom.Point2D getMidPoint(oracle.spatial.geometry.JGeometry geom)
          THIS METHOD HAS NOT YET BEEN CODED
static double[] getRange(oracle.spatial.geometry.JGeometry geom)
           
static double getZ(double[] xy, double[] triangle)
          THIS METHOD HAS NOT YET BEEN CODED The method computes the elevation of an XY location projected onto a plane described by a three-dimensional triangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spatial

public Spatial()
Method Detail

convertDecimalLatLonToDMS

public static java.lang.String convertDecimalLatLonToDMS(java.lang.Double LatLon,
                                                         boolean latitude)
Parameters:
LatLon -
latitude -
Returns:

convertDecimalLatLonToDMS

public static java.lang.String convertDecimalLatLonToDMS(java.lang.Double LatLon,
                                                         boolean latitude,
                                                         int precision)
Parameters:
LatLon -
latitude -
precision -
Returns:

getRange

public static double[] getRange(oracle.spatial.geometry.JGeometry geom)
Parameters:
geom -
Returns:
the range of geom

getCenter

public static java.awt.geom.Point2D getCenter(oracle.spatial.geometry.JGeometry geom)
THIS METHOD CURRENTLY RETURNS THE CENTER OF THE RANGE RECTANGLE IT SHOULD COMPUTE THE CENTROID

Parameters:
geom -
Returns:

getCenter

public static java.awt.geom.Point2D getCenter(double[] range)
THIS METHOD CURRENTLY RETURNS THE CENTER OF THE RANGE RECTANGLE IT SHOULD COMPUTE THE CENTROID

Parameters:
range -
Returns:

getFirstPoint

public static java.awt.geom.Point2D getFirstPoint(oracle.spatial.geometry.JGeometry geom)
Parameters:
geom -
Returns:

getLastPoint

public static java.awt.geom.Point2D getLastPoint(oracle.spatial.geometry.JGeometry geom)
Parameters:
geom -
Returns:

getMidPoint

public static java.awt.geom.Point2D getMidPoint(oracle.spatial.geometry.JGeometry geom)
THIS METHOD HAS NOT YET BEEN CODED

Parameters:
geom -
Returns:

getZ

public static double getZ(double[] xy,
                          double[] triangle)
THIS METHOD HAS NOT YET BEEN CODED The method computes the elevation of an XY location projected onto a plane described by a three-dimensional triangle.

Parameters:
xy - a two dimensional double array describing an XY location. xy is not required to lie inside triangle
triangle - an array of 9 doubles describing a triangle in 3 dimensions {x1,y1,z1,x2,y2,z2,x3,y3,z3}
Returns:
the Z value of xy such that xyz lies on the plane described by triangle