Interface ISpatialReference2
Provides access to additional members that control a SpatialReference.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("3267D410-F5D9-11D3-9F69-00C04F6BDD7F")]
public interface ISpatialReference2 : ISpatialReference, ISpatialReferenceInfo
Properties
Abbreviation
string Abbreviation { get; }
Property Value
Alias
string Alias { get; }
Property Value
FactoryCode
int FactoryCode { get; }
Property Value
Name
string Name { get; }
Property Value
PrecisionExImpl
long PrecisionExImpl { get; }
Property Value
PrecisionImpl
long PrecisionImpl { get; }
Property Value
Remarks
string Remarks { get; }
Property Value
SpatialReferenceImpl
long SpatialReferenceImpl { get; }
Property Value
ZCoordinateUnit
ILinearUnit ZCoordinateUnit { get; set; }
Property Value
Methods
ApplyPrecision(int, ref WKSPoint, ref double, ref double)
Applies the measure and z value precisions.
void ApplyPrecision(int cPoints, ref WKSPoint Points, ref double ms, ref double zs)
Parameters
ApplyXYPrecision(int, ref WKSPoint)
Applies the XY precision.
void ApplyXYPrecision(int cPoints, ref WKSPoint Points)
Parameters
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.
Changed()
void Changed()
GetDomain(out double, out double, out double, out double)
void GetDomain(out double XMin, out double XMax, out double YMin, out double YMax)
Parameters
GetFalseOriginAndUnits(out double, out double, out double)
void GetFalseOriginAndUnits(out double falseX, out double falseY, out double xyUnits)
Parameters
GetMDomain(out double, out double)
void GetMDomain(out double outMMin, out double outMMax)
Parameters
GetMFalseOriginAndUnits(out double, out double)
void GetMFalseOriginAndUnits(out double falseM, out double mUnits)
Parameters
GetZDomain(out double, out double)
void GetZDomain(out double outZMin, out double outZMax)
Parameters
GetZFalseOriginAndUnits(out double, out double)
void GetZFalseOriginAndUnits(out double falseZ, out double zUnits)
Parameters
HasMPrecision()
bool HasMPrecision()
Returns
HasXYPrecision()
bool HasXYPrecision()
Returns
HasZPrecision()
bool HasZPrecision()
Returns
IsMPrecisionEqual(ISpatialReference)
Returns true if the measure precisions of the two spatial references are the same.
bool IsMPrecisionEqual(ISpatialReference otherSR)
Parameters
otherSRISpatialReference
Returns
Remarks
The IClone::IsEqual method for PCSs and GCSs compares only the projection information (projection, spheroid, projected units, etc.). It does not compare any properties related to the coordinate grid definition for the spatial references.
Use the ISpatialReference2.IsXY/Z/MPrecisionEqual methods to compare coordinate grid information.
Use the ISpatialReferenceTolerance.IsXY/Z/MToleranceEqual methods to compare the various cluster tolerances for the spatial references.
IsPrecisionEqual(ISpatialReference, out bool)
void IsPrecisionEqual(ISpatialReference otherSR, out bool IsPrecisionEqual)
Parameters
otherSRISpatialReferenceIsPrecisionEqualbool
IsXYPrecisionEqual(ISpatialReference)
Returns true if the XY precisions of the two spatial references are the same.
bool IsXYPrecisionEqual(ISpatialReference otherSR)
Parameters
otherSRISpatialReference
Returns
Remarks
The IClone::IsEqual method for PCSs and GCSs compares only the projection information (projection, spheroid, projected units, etc.). It does not compare any properties related to the coordinate grid definition for the spatial references.
Use the ISpatialReference2.IsXY/Z/MPrecisionEqual methods to compare coordinate grid information.
Use the ISpatialReferenceTolerance.IsXY/Z/MToleranceEqual methods to compare the various cluster tolerances for the spatial references.
IsZPrecisionEqual(ISpatialReference)
Returns true if the Z precisions of the two spatial references are the same.
bool IsZPrecisionEqual(ISpatialReference otherSR)
Parameters
otherSRISpatialReference
Returns
Remarks
The IClone::IsEqual method for PCSs and GCSs compares only the projection information (projection, spheroid, projected units, etc.). It does not compare any properties related to the coordinate grid definition for the spatial references.
Use the ISpatialReference2.IsXY/Z/MPrecisionEqual methods to compare coordinate grid information.
Use the ISpatialReferenceTolerance.IsXY/Z/MToleranceEqual methods to compare the various cluster tolerances for the spatial references.
SetDomain(double, double, double, double)
void SetDomain(double XMin, double XMax, double YMin, double YMax)
Parameters
SetFalseOriginAndUnits(double, double, double)
void SetFalseOriginAndUnits(double falseX, double falseY, double xyUnits)
Parameters
SetMDomain(double, double)
void SetMDomain(double inMMin, double inMMax)
Parameters
SetMFalseOriginAndUnits(double, double)
void SetMFalseOriginAndUnits(double falseM, double mUnits)
Parameters
SetZDomain(double, double)
void SetZDomain(double inZMin, double inZMax)
Parameters
SetZFalseOriginAndUnits(double, double)
void SetZFalseOriginAndUnits(double falseZ, double zUnits)