com.esri.arcgis.geometry
Interface ISpatialReference2

All Superinterfaces:
ISpatialReference, ISpatialReferenceInfo, java.io.Serializable
All Known Subinterfaces:
ISpatialReference3
All Known Implementing Classes:
GeographicCoordinateSystem, ISpatialReference2Proxy, ISpatialReference3Proxy, ProjectedCoordinateSystem, UnknownCoordinateSystem

Deprecated. This interface uses C style arrays which are not supported in the ArcGIS API for Java. It is replaced by ISpatialReference2GEN. You can use the GEN interface proxy's Object-constructor to cast an instance of this interface to its GEN equivalent. Any ArcGIS class that implements this interface also implements the GEN interface.

public interface ISpatialReference2
extends ISpatialReference, java.io.Serializable

Provides access to additional members that control a SpatialReference.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Description

Extends the ISpatialReference interface by adding functions to compare precision (resolution) of two spatial references, and round off coordinate data to the current resolution.


Method Summary
 void applyPrecision(int cPoints, _WKSPoint points, double[] ms, double[] zs)
          Deprecated. Applies the measure and z value precisions.
 void applyXYPrecision(int cPoints, _WKSPoint points)
          Deprecated. Applies the XY precision.
 boolean isMPrecisionEqual(ISpatialReference otherSR)
          Deprecated. Returns true if the measure precisions of the two spatial references are the same.
 boolean isXYPrecisionEqual(ISpatialReference otherSR)
          Deprecated. Returns true if the XY precisions of the two spatial references are the same.
 boolean isZPrecisionEqual(ISpatialReference otherSR)
          Deprecated. Returns true if the Z precisions of the two spatial references are the same.
 
Methods inherited from interface com.esri.arcgis.geometry.ISpatialReference
changed, getDomain, getFalseOriginAndUnits, getMDomain, getMFalseOriginAndUnits, getZCoordinateUnit, getZDomain, getZFalseOriginAndUnits, hasMPrecision, hasXYPrecision, hasZPrecision, isPrecisionEqual, setDomain, setFalseOriginAndUnits, setMDomain, setMFalseOriginAndUnits, setZCoordinateUnit, setZDomain, setZFalseOriginAndUnits
 
Methods inherited from interface com.esri.arcgis.geometry.ISpatialReferenceInfo
getAbbreviation, getAlias, getFactoryCode, getName, getRemarks
 

Method Detail

isXYPrecisionEqual

public boolean isXYPrecisionEqual(ISpatialReference otherSR)
                           throws java.io.IOException,
                                  AutomationException
Deprecated. 
Returns true if the XY precisions of the two spatial references are the same.

Parameters:
otherSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Returns:
The isXYPrecisionEqual
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isMPrecisionEqual

public boolean isMPrecisionEqual(ISpatialReference otherSR)
                          throws java.io.IOException,
                                 AutomationException
Deprecated. 
Returns true if the measure precisions of the two spatial references are the same.

Parameters:
otherSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Returns:
The isMPrecisionEqual
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isZPrecisionEqual

public boolean isZPrecisionEqual(ISpatialReference otherSR)
                          throws java.io.IOException,
                                 AutomationException
Deprecated. 
Returns true if the Z precisions of the two spatial references are the same.

Parameters:
otherSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Returns:
The isZPrecisionEqual
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

applyXYPrecision

public void applyXYPrecision(int cPoints,
                             _WKSPoint points)
                      throws java.io.IOException,
                             AutomationException
Deprecated. 
Applies the XY precision.

Supported Platforms

Windows, Solaris, Linux

Description

The ApplyXYPrecision method snaps XY coordinate values to the spatial reference's coordinate grid. Normally, the geodatabase calls this method when appropriate, however you may need to use it when comparing locally generated coordinates against features coming from a geodatabase.

Remarks

The cPoints value is the number of points to which you wish to apply the XY precision (1/resolution). A WKSPoint is a structure that contains the X and Y values of a coordinate pair.

Parameters:
cPoints - The cPoints (in)
points - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

applyPrecision

public void applyPrecision(int cPoints,
                           _WKSPoint points,
                           double[] ms,
                           double[] zs)
                    throws java.io.IOException,
                           AutomationException
Deprecated. 
Applies the measure and z value precisions.

Supported Platforms

Windows, Solaris, Linux

Description

The ApplyPrecision method snaps measure or z values to the spatial reference grid. Each SpatialReference has an extent and a resolution (1/precision) for the xy, z, and measure values. You can set this information with the SetZDomain, SetMDomain, SetZFalseOriginAndUnits or the SetMFalseOriginAndUnits methods. If you use a Domain method, the resolution (1/precision) is calculated from the given extent. The FalseOriginAndUnits methods sets the lower bound of the extent and explicitly defines the precision (units, or 1/resolution) of the spatial reference.

Parameters:
cPoints - The cPoints (in)
points - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
ms - The ms (in)
zs - The zs (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.