|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeCoordinateReference
public class SeCoordinateReference
Represents the Coordinate Reference of a Geometry.
A coordinate system is either geographic (longitude,latitude) or projected (x,y) and locates spatial data on a 3-D spherical or 2-D planar surface. A coordinate reference includes the coordinate system and a set of offset (false origin) and scale values that convert floating point real-world values into integers for internal storage in the SDE layer.
This information is stored in a coordinate reference object. Each spatial column (layer) has a coordinate reference associated with it. Shapes inherit a coordinate reference from their spatial column. Shapes created by an application must have a coordinate reference object associated with them when they are created. The coordinate reference is maintained through client processes.
Constructor Summary | |
---|---|
SeCoordinateReference()
Creates a default coordinate reference object with all offsets set to zero and an xy scale factor of one. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the coordinate reference object. |
PeCoordinateSystem |
getCoordSys()
Returns the coordinate system of this coordinate reference object. |
java.lang.String |
getCoordSysDescription()
Returns the description of the coordinate system of a Coordinate Reference. |
double |
getFalseM()
Returns the measure offset. |
double |
getFalseX()
Returns the false origin's x offset value. |
double |
getFalseY()
Returns the false origin's y offset value. |
double |
getFalseZ()
Returns the false origin's z offset value. |
double |
getMaxMValue()
Returns the maximum measure value. |
double |
getMaxZValue()
Returns the maximum z-value. |
double |
getMinMValue()
Returns the minimum measure value. |
double |
getMinZValue()
Returns the minimum z-value. |
double |
getMUnits()
Returns the m-offset's scale factor. |
int |
getPrecision()
Returns the precision of this coordinate reference object. |
java.lang.String |
getProjectionDescription()
Deprecated. at ArcSDE version 9.1 |
SeObjectId |
getSrid()
Returns the Spatial Reference Id of this Coordinate Reference. |
PeVertCS |
getVertCS()
Returns the vertical coordinate system associated with the coordinate reference system. |
int |
getVertCSId()
Returns the vertical coordinate system ID for the supplied coordinate reference object. |
SeExtent |
getXYEnvelope()
Returns the the range of X/Y values for the coordinate reference object based upon the false origin/units values. |
double |
getXYUnits()
Returns the xy scale factor |
double |
getZUnits()
Returns the z-offset's scale factor. |
boolean |
isEqual(SeCoordinateReference cRefB)
Compares two coordinate reference objects. |
void |
setCoordSysByDescription(java.lang.String desc)
Sets the coordinate system for the coordinate reference object by a character string description. |
void |
setCoordSysByID(SeObjectId coordSysID)
Sets the coordinate system for this coordinate reference object. |
void |
setM(double falseM,
double mUnits)
Sets the measures false origin and scale factor. |
void |
setMByRange(double minMVal,
double maxMVal)
Sets the minimum and maximum measure values. |
void |
setPrecision(int precision)
Sets the precision of this coordinate reference. |
void |
setVertCS(PeVertCS vcs)
Sets the vertical coordinate system of the given coordinate reference object. |
void |
setVertCSById(int vertCSId)
Sets the vertical coordinate system for the supplied coordinate reference object. |
void |
setXY(double falseX,
double falseY,
double xyUnits)
Sets the x,y false origin and scale factor. |
void |
setXYByEnvelope(SeExtent extent)
Calculates and sets the x,y false origin and scale factor from the supplied envelope. |
void |
setZ(double falseZ,
double zUnits)
Sets the z false origin and scale factor. |
void |
setZByRange(double minZVal,
double maxZVal)
Sets the z false origin and scale factor from the given range. |
java.lang.String |
toString()
Returns a string description of this coordinate reference object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SeCoordinateReference()
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public PeCoordinateSystem getCoordSys()
public PeVertCS getVertCS() throws SeException
SeException
public java.lang.String getProjectionDescription()
String
description of the coordinate reference.
public double getFalseM()
public double getMUnits()
public double getMinMValue()
public double getMaxMValue()
public SeObjectId getSrid()
public double getFalseX()
public double getFalseY()
public double getXYUnits()
public double getFalseZ()
public double getZUnits()
public double getMinZValue()
public double getMaxZValue()
public boolean isEqual(SeCoordinateReference cRefB) throws SeException
cRefB
- the coordinate reference to compare with.
SeException
public void setVertCS(PeVertCS vcs) throws SeException
SeException
PeFactory.vertcs(int)
,
PeVertCS
public void setVertCSById(int vertCSId) throws SeException
If the vertcs_id is set to zero, the function fails with the error
SeError.SE_INVALID_COORDSYS_ID
. This occurs when it receives a
NULL pointer to a vertical coordinate system structure from
PeFactory.factory(int code)
.
The correct way to set the horizontal and vertical coordinate systems
to values that are not known or pre-defined, is to call
setCoordSysByDescription(java.lang.String)
.
SeException
public void setCoordSysByDescription(java.lang.String desc) throws SeException
desc
- A character string representation of the coordinate system.
SeException
public java.lang.String getCoordSysDescription()
public void setCoordSysByID(SeObjectId coordSysID) throws SeException
coordSysID
- The predefined Projection Engine ID.
SeException
public void setM(double falseM, double mUnits)
falseM
- the false measure origin valuemUnits
- the number of system units per measure unitpublic void setMByRange(double minMVal, double maxMVal)
minMVal
- The minimum measure valuemaxMVal
- The maximum measure valuepublic void setPrecision(int precision) throws SeException
SeLayer.SE_LAYER_PRECISION_DEFAULT
SeLayer.SE_LAYER_PRECISION_BASIC
SeLayer.SE_LAYER_PRECISION_HIGH
precision
- The precision value
SeException
public int getVertCSId() throws SeException
SeException
public int getPrecision() throws SeException
SeLayer.SE_LAYER_PRECISION_32_BIT
SeLayer.SE_LAYER_PRECISION_64_BIT
SeLayer.SE_LAYER_PRECISION_DEFAULT
SeException
public void setXY(double falseX, double falseY, double xyUnits)
falseX
- the false origin x-valuefalseY
- the false origin y-valuexyUnits
- the number of system units per x,y unitpublic SeExtent getXYEnvelope() throws SeException
SeException
public void setXYByEnvelope(SeExtent extent) throws SeException
extent
- an SeExtent object.
SeException
public void setZ(double falseZ, double zUnits)
falseZ
- The false origin z-valuezUnits
- The number of system units per z-unitpublic void setZByRange(double minZVal, double maxZVal)
minZVal
- The minimum z valuemaxZVal
- The maximum z valuepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |