oracle.sdoapi.sref
Interface Projection

All Superinterfaces:
java.io.Serializable

public interface Projection
extends java.io.Serializable

Base interface for transformation between geographic coordinate systems and projected coordinate systems.


Method Summary
 boolean forward(double[] lonlat, double[] xy)
          Forward transform.
 GeodeticDatum getGeodeticDatum()
          Gets the geodetic datum used by this projection.
 int getID()
          Gets the (internal) ID for this projection.
 java.lang.String getName()
          Gets the name for this Projection.
 XFormParameters getParameters()
          Gets the parameters used by this projection.
 boolean inverse(double[] xy, double[] lonlat)
          Inverse transfrom.
 boolean sameAs(Projection prj2)
          Checks if this projection is effectively the same as prj2.
 void setGeodeticDatum(GeodeticDatum gd)
          Gets the geodetic datum used by this projection.
 void setID(int id)
          Gets the (internal) ID for this projection.
 void setName(java.lang.String name)
          Gets the name for this Projection.
 void setParameters(XFormParameters parms)
          Gets the parameters used by this projection.
 

Method Detail

getName

public java.lang.String getName()
Gets the name for this Projection. For example, "UTM".

getID

public int getID()
Gets the (internal) ID for this projection.

getParameters

public XFormParameters getParameters()
Gets the parameters used by this projection.

getGeodeticDatum

public GeodeticDatum getGeodeticDatum()
Gets the geodetic datum used by this projection.

setName

public void setName(java.lang.String name)
Gets the name for this Projection. For example, "UTM".

setID

public void setID(int id)
Gets the (internal) ID for this projection.

setParameters

public void setParameters(XFormParameters parms)
Gets the parameters used by this projection.

setGeodeticDatum

public void setGeodeticDatum(GeodeticDatum gd)
Gets the geodetic datum used by this projection.

forward

public boolean forward(double[] lonlat,
                       double[] xy)
Forward transform. The input longitude/latitude MUST be in radians.
Parameters:
lonlat - the double array for lon/lat. lonlat[0] is longitude, while lonlat[1] is latitude.

inverse

public boolean inverse(double[] xy,
                       double[] lonlat)
Inverse transfrom. The output longitude/latitude will be in radians.
Parameters:
lonlat - the double array for lon/lat. lonlat[0] is longitude, while lonlat[1] is latitude.

sameAs

public boolean sameAs(Projection prj2)
Checks if this projection is effectively the same as prj2. Names and IDs of the two projections are not considered. Only the underlying geographic coordinate system and the projection type and parameters are compared.
Returns:
true if the two projections are effectively the same; otherwise false