com.esri.sde.sdk.pe
Class PeSpheroid

java.lang.Object
  extended by com.esri.sde.sdk.pe.PeObject
      extended by com.esri.sde.sdk.pe.PeSpheroid
All Implemented Interfaces:
java.lang.Cloneable

public final class PeSpheroid
extends PeObject

This class defines the shape and size of a geographic coordinate system's surface. Although the Earth is best represented by an ellipsoid, the Earth is sometimes treated as a sphere to make mathematical calculations easier.


Constructor Summary
PeSpheroid(java.lang.String str)
          Constructor.
PeSpheroid(java.lang.String name, double axis, double flattening)
          Constructor.
 
Method Summary
 java.lang.Object clone()
          Clone a spheroid.
 void delete()
          Deconstructor.
static PeSpheroid fromString(java.lang.String str)
          Create a spheroid from a string.
 PeAuthority getAuth()
          Retrieve a spheroid's authority.
 double getAxis()
          Retrieve a spheroid's semi-major axis.
 int getCode()
           
 double getFlattening()
          Retrieve a spheroid's flattening.
 java.lang.String getName()
          Retrieve a spheroid's name.
 int getStatus()
          Get a spheroid's status.
 int getType()
          Retrieve a spheroid's type.
 boolean isEqual(PeObject peobj)
          Tests if two spheroids are identical.
 boolean isEqual(PeSpheroid spheroid)
           
 void setAuth(PeAuthority authority)
          Store an authority in a spheroid.
 java.lang.String toString()
          Retrieve a spheroid's external representation.
 java.lang.String toString(int mode)
          Retrieve a spheroid's extended external representation.
 
Methods inherited from class com.esri.sde.sdk.pe.PeObject
fromAnyString, fromStringByType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeSpheroid

public PeSpheroid(java.lang.String name,
                  double axis,
                  double flattening)
           throws PeProjectionException
Constructor.

Throws:
PeProjectionException

PeSpheroid

public PeSpheroid(java.lang.String str)
           throws PeProjectionException
Constructor.

Throws:
PeProjectionException
Method Detail

fromString

public static PeSpheroid fromString(java.lang.String str)
                             throws PeProjectionException
Create a spheroid from a string.

Throws:
PeProjectionException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone a spheroid.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

delete

public void delete()
Deconstructor.

Specified by:
delete in class PeObject

getName

public java.lang.String getName()
Retrieve a spheroid's name.

Specified by:
getName in class PeObject

getType

public int getType()
Retrieve a spheroid's type.

Specified by:
getType in class PeObject

getStatus

public int getStatus()
Get a spheroid's status.

Specified by:
getStatus in class PeObject

isEqual

public boolean isEqual(PeObject peobj)
Tests if two spheroids are identical.

Specified by:
isEqual in class PeObject

isEqual

public boolean isEqual(PeSpheroid spheroid)

toString

public java.lang.String toString()
Retrieve a spheroid's external representation.

Specified by:
toString in class PeObject

toString

public java.lang.String toString(int mode)
Retrieve a spheroid's extended external representation.

Specified by:
toString in class PeObject

getAuth

public PeAuthority getAuth()
Retrieve a spheroid's authority.

Specified by:
getAuth in class PeObject

setAuth

public void setAuth(PeAuthority authority)
Store an authority in a spheroid.

Specified by:
setAuth in class PeObject

getAxis

public double getAxis()
Retrieve a spheroid's semi-major axis.


getFlattening

public double getFlattening()
Retrieve a spheroid's flattening.


getCode

public int getCode()
Specified by:
getCode in class PeObject