|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control a SpatialReference.
| Method Summary | |
void |
changed()
Notify this object that some of its parts have changed (parameter values, z unit, etc.). |
void |
getDomain(double[] xMin,
double[] xMax,
double[] yMin,
double[] yMax)
The XY domain extent. |
void |
getFalseOriginAndUnits(double[] falseX,
double[] falseY,
double[] xyUnits)
Get the false origin and units. |
void |
getMDomain(double[] outMMin,
double[] outMMax)
The measure domain extent. |
void |
getMFalseOriginAndUnits(double[] falseM,
double[] mUnits)
Get the measure false origin and units. |
ILinearUnit |
getZCoordinateUnit()
The unit for the Z coordinate. |
void |
getZDomain(double[] outZMin,
double[] outZMax)
The Z domain extent. |
void |
getZFalseOriginAndUnits(double[] falseZ,
double[] zUnits)
Get the Z false origin and units. |
boolean |
hasMPrecision()
Returns true when m-value precision information has been defined. |
boolean |
hasXYPrecision()
Returns true when (x,y) precision information has been defined. |
boolean |
hasZPrecision()
Returns true when z-value precision information has been defined. |
void |
isPrecisionEqual(ISpatialReference otherSR,
boolean[] isPrecisionEqual)
Returns TRUE when the precision information for the two spatial references is the same. |
void |
setDomain(double xMin,
double xMax,
double yMin,
double yMax)
The XY domain extent. |
void |
setFalseOriginAndUnits(double falseX,
double falseY,
double xyUnits)
Set the false origin and units. |
void |
setMDomain(double inMMin,
double inMMax)
The measure domain extent. |
void |
setMFalseOriginAndUnits(double falseM,
double mUnits)
Set the measure false origin and units. |
void |
setZCoordinateUnit(ILinearUnit zunit)
The unit for the Z coordinate. |
void |
setZDomain(double inZMin,
double inZMax)
The Z domain extent. |
void |
setZFalseOriginAndUnits(double falseZ,
double zUnits)
Set the Z false origin and units. |
| Methods inherited from interface com.esri.arcgis.geometry.ISpatialReferenceInfo |
getAbbreviation, getAlias, getFactoryCode, getName, getRemarks |
| Method Detail |
public boolean hasXYPrecision()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean hasZPrecision()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean hasMPrecision()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isPrecisionEqual(ISpatialReference otherSR,
boolean[] isPrecisionEqual)
throws java.io.IOException,
AutomationException
The IClone::IsEqual method implementation for spatial references only compares the coordinate system (projection information) portion of the spatial reference. If, in addition, you need to verify that the coordinate grid portions of the spatial references are equal, apply this method after IsEqual. The XY, Z, or M domain and resolution (precision) values, as well as the XY, Z and M cluster tolerances are compared.
otherSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)isPrecisionEqual - The isPrecisionEqual (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFalseOriginAndUnits(double falseX,
double falseY,
double xyUnits)
throws java.io.IOException,
AutomationException
falseX - The falseX (in)falseY - The falseY (in)xyUnits - The xyUnits (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZFalseOriginAndUnits(double falseZ,
double zUnits)
throws java.io.IOException,
AutomationException
falseZ - The falseZ (in)zUnits - The zUnits (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMFalseOriginAndUnits(double falseM,
double mUnits)
throws java.io.IOException,
AutomationException
falseM - The falseM (in)mUnits - The mUnits (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getFalseOriginAndUnits(double[] falseX,
double[] falseY,
double[] xyUnits)
throws java.io.IOException,
AutomationException
An alternative method to the GetDomain method. The falseX and falseY values correspond to the minimum X and minimum Y values of the XY domain. The xyUnits is the same as the precision or scale value. The inverse of the xyUnits defines the resolution of the data stored in the geodatabase. The resolution is used to snap data when it is stored in the geodatabase.
The falseX, falseY, and xyUnits use the same unit of measure as the coordinate system.
Sample values if data is based on a geographic coordinate system are:
falseX = -180
falseY = -90
xyUnits = 1000000
Sample values if data is based on a projected coordinate system are:
falseX = 200000
falseY = 4000000
xyUnits = 100
In the first example, the data is using a geographic coordinate system so the falseX and falseY values are in degrees. The inverse of the xyUnits is 0.000001 degrees.
In the second example, the data is using a projected coordinate system. Let us assume that the unit of measure is meters. The smallest coordinates values that a feature can have is x = 200000 meters and Y = 4000000 meters. The inverse of the xyUnits is 0.01 (meters) which means data will be snapped to the closest centimeter when it is stored.
Use this function to retrieve the following information about the spatial reference of the geometry:
falseX: XMin of the domain.
falseY: YMin of the domain.
XYUnits: Precision of the domain.
falseX - The falseX (out: use single element array)falseY - The falseY (out: use single element array)xyUnits - The xyUnits (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getZFalseOriginAndUnits(double[] falseZ,
double[] zUnits)
throws java.io.IOException,
AutomationException
An alternative method to the GetZDomain method. The falseZ value corresponds to the minimum Z value of the Z domain. The zUnits is the same as the precision or scale value. The inverse of the zUnits defines the resolution of the z data stored in the geodatabase. The resolution is used to snap data when it is stored in the geodatabase.
falseZ - The falseZ (out: use single element array)zUnits - The zUnits (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.ISpatialReferenceResolution
public void getMFalseOriginAndUnits(double[] falseM,
double[] mUnits)
throws java.io.IOException,
AutomationException
An alternative method to the GetMDomain method. The falseM value corresponds to the minimum measure value of the measure domain. The mUnits is the same as the precision or scale value. The inverse of the mUnits defines the resolution of the measure data stored in the geodatabase. The resolution is used to snap data when it is stored in the geodatabase.
falseM - The falseM (out: use single element array)mUnits - The mUnits (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getDomain(double[] xMin,
double[] xMax,
double[] yMin,
double[] yMax)
throws java.io.IOException,
AutomationException
An alternative method to the GetFalseOriginAndUnits method. Returns the minimum and maximum allowed X and Y values for a spatial reference. Use GetFalseOriginAndUnits to obtain the allowed precision (1/resolution) value.
The GetDomain and SetDomain methods are used to set and get the square domain extent of a coordinate system. The domain extent is different than the valid area of a coordinate system. The domain extent is an arbitrary square used to delimit valid coordinates for a spatial reference system and determine their resolution. It is possible that the domain extent is larger than the usable area of a coordinate system (a UTM zone, for example). A small domain extent gives you finer resolution coordinates over a smaller area. A larger domain extent lets you represent features over a larger geographic area but with coarser resolution.
xMin - The xMin (out: use single element array)xMax - The xMax (out: use single element array)yMin - The yMin (out: use single element array)yMax - The yMax (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDomain(double xMin,
double xMax,
double yMin,
double yMax)
throws java.io.IOException,
AutomationException
xMin - The xMin (in)xMax - The xMax (in)yMin - The yMin (in)yMax - The yMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getZDomain(double[] outZMin,
double[] outZMax)
throws java.io.IOException,
AutomationException
An alternative method to the GetZFalseOriginAndUnits method. Returns the minimum and maximum allowed Z values for a spatial reference. Use GetZFalseOriginAndUnits to obtain the Z precision (1/resolution) value.
outZMin - The outZMin (out: use single element array)outZMax - The outZMax (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZDomain(double inZMin,
double inZMax)
throws java.io.IOException,
AutomationException
inZMin - The inZMin (in)inZMax - The inZMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getMDomain(double[] outMMin,
double[] outMMax)
throws java.io.IOException,
AutomationException
An alternative method to the GetMFalseOriginAndUnits method. Returns the minimum and maximum allowed measure values for a spatial reference. Use GetMFalseOriginAndUnits to obtain the M precision (1/resolution) value.
outMMin - The outMMin (out: use single element array)outMMax - The outMMax (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMDomain(double inMMin,
double inMMax)
throws java.io.IOException,
AutomationException
inMMin - The inMMin (in)inMMax - The inMMax (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILinearUnit getZCoordinateUnit()
throws java.io.IOException,
AutomationException
ISpatialReference::ZCoordinateUnit should no longer be used in favor of ISpatialReference3::VerticalCoordinateSystem
There is now an entire Vertical Coordinate System available for your convenience. Using ISpatialReference3::VerticalCoordinateSystem has several benefits including allowing the user to choose a datum, positive or negative direction for the values of Z, and a vertical shift to the Z values.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setZCoordinateUnit(ILinearUnit zunit)
throws java.io.IOException,
AutomationException
zunit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void changed()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||