com.esri.sde.sdk.client
Class SeSpatialReference

java.lang.Object
  extended by com.esri.sde.sdk.client.SeSpatialReference

public class SeSpatialReference
extends java.lang.Object

Represents the Spatial Reference of an ArcSde layer.


Constructor Summary
SeSpatialReference(SeConnection conn)
          Creates a default spatial reference object.
SeSpatialReference(SeConnection conn, SeObjectId srId)
          SeSpatialReference constructor with an SeConnection and spatial refernce ID that retrieves the spatial reference information for the specified ID.
 
Method Summary
 void alter()
          Alters a spatial reference entry in the spatial_references table.
 java.lang.Object clone()
           
 void create()
          Creates a spatial reference entry in the spatial_references table.
 void delete(SeObjectId srid)
          Deletes a spatial reference entry in the spatial_references table.
 SeObjectId getAuthId()
          Returns the authority ID for a spatial reference object.
 java.lang.String getAuthName()
          Returns the authority name for a spatial reference object.
 SeCoordinateReference getCoordRef()
          Returns the SeCoordinateReference object.
 java.lang.String getDescription()
          Returns the description of the spatial reference object.
 SeObjectId getSrId()
          Returns the ID for the supplied spatial reference object.
 void setAuthId(SeObjectId authId)
          Sets the authority ID of a spatial reference object.
 void setAuthName(java.lang.String authName)
          Sets the name of the authority for a spatial reference object.
 void setCoordRef(SeCoordinateReference cref)
          Sets the SeCoordinateReference object.
 void setDescription(java.lang.String desc)
          Sets the description of the spatial reference object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeSpatialReference

public SeSpatialReference(SeConnection conn)
                   throws SeException
Creates a default spatial reference object.

Throws:
SeException

SeSpatialReference

public SeSpatialReference(SeConnection conn,
                          SeObjectId srId)
                   throws SeException
SeSpatialReference constructor with an SeConnection and spatial refernce ID that retrieves the spatial reference information for the specified ID.

Parameters:
conn - SeConnection object handle.
srId - the spatial rerefence ID.
Throws:
SeException
Method Detail

alter

public void alter()
           throws SeException
Alters a spatial reference entry in the spatial_references table.

Throws:
SeException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

create

public void create()
            throws SeException
Creates a spatial reference entry in the spatial_references table. The srid (spatial reference ID) is assigned when the entry is added to the spatial_references table. If an exact duplicate of the spatial reference exists, the srid for the existing entry is returned, a new entry isn't inserted, and the warning exception SE_SPATIALREF_EXISTS is returned.

Throws:
SeException

delete

public void delete(SeObjectId srid)
            throws SeException
Deletes a spatial reference entry in the spatial_references table.

Throws:
SeException

setAuthName

public void setAuthName(java.lang.String authName)
                 throws SeException
Sets the name of the authority for a spatial reference object.

Throws:
SeException

getAuthName

public java.lang.String getAuthName()
                             throws SeException
Returns the authority name for a spatial reference object. The authority name property is the name of the standards authority for which the spatial reference is valid.

Returns:
String
Throws:
SeException

setAuthId

public void setAuthId(SeObjectId authId)
Sets the authority ID of a spatial reference object.


getAuthId

public SeObjectId getAuthId()
                     throws SeException
Returns the authority ID for a spatial reference object. The authority ID property is the ID value of the standards authority for which the spatial reference is valid. The authority ID is defined for informational purposes only.

Returns:
SeObjectId
Throws:
SeException

setCoordRef

public void setCoordRef(SeCoordinateReference cref)
                 throws java.lang.CloneNotSupportedException
Sets the SeCoordinateReference object. throws SeExecption

Throws:
java.lang.CloneNotSupportedException

getCoordRef

public SeCoordinateReference getCoordRef()
                                  throws SeException,
                                         java.lang.CloneNotSupportedException
Returns the SeCoordinateReference object.

Returns:
SeCoordinateReference throws SeExecption
Throws:
SeException
java.lang.CloneNotSupportedException

setDescription

public void setDescription(java.lang.String desc)
Sets the description of the spatial reference object.


getDescription

public java.lang.String getDescription()
                                throws SeException
Returns the description of the spatial reference object.

Returns:
String
Throws:
SeException

getSrId

public SeObjectId getSrId()
                   throws SeException
Returns the ID for the supplied spatial reference object.

Returns:
SeObjectId
Throws:
SeException