Interface ISpatialReference2GEN
Provides access to additional members that control a SpatialReference. ISpatialReference2GEN is generic version of ISpatialReference.
[Guid("3B563182-CF62-4D40-9157-5022F7AE4561")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ISpatialReference2GEN
Properties
Abbreviation
The abbreviated name of this spatial reference component.
string Abbreviation { get; }
Property Value
Alias
The alias of this spatial reference component.
string Alias { get; }
Property Value
FactoryCode
The factory code of the spatial reference.
int FactoryCode { get; }
Property Value
Remarks
The factory code is an integer identifier that is unique by projection engine object type, such as a projected coordinate system. You can use a factory code in the ISpatialReferenceFactory::CreateProjectedCoordinateSystem method for example. If you create a custom projected coordinate system, the factory code is zero.
Name
The name of this spatial reference component.
string Name { get; }
Property Value
PrecisionExImpl
An opaque reference to the precision information (including z/m awareness) implementation for this spatial reference.
long PrecisionExImpl { get; }
Property Value
PrecisionImpl
An opaque reference to the precision information implementation for this spatial reference.
long PrecisionImpl { get; }
Property Value
Remarks
The comment string of this spatial reference component.
string Remarks { get; }
Property Value
SpatialReferenceImpl
SpatialReferenceImpl.
long SpatialReferenceImpl { get; }
Property Value
ZCoordinateUnit
The unit for the Z coordinate.
ILinearUnit ZCoordinateUnit { get; set; }
Property Value
Methods
ApplyPrecision(ref WKSPoint[], ref double[], ref double[])
Applies the measure and z value precisions.
void ApplyPrecision(ref WKSPoint[] Points, ref double[] ms, ref double[] zs)
Parameters
ApplyXYPrecision(ref WKSPoint[])
Applies the XY precision.
void ApplyXYPrecision(ref WKSPoint[] Points)
Parameters
PointsWKSPoint[]
Changed()
Notify this object that some of its parts have changed (parameter values, z unit, etc.).
void Changed()
GetDomain(ref double, ref double, ref double, ref double)
Get the domain extent.
void GetDomain(ref double XMin, ref double XMax, ref double YMin, ref double YMax)
Parameters
GetFalseOriginAndUnits(ref double, ref double, ref double)
Get the false origin and units.
void GetFalseOriginAndUnits(ref double falseX, ref double falseY, ref double xyUnits)
Parameters
GetMDomain(ref double, ref double)
Get the measure domain extent.
void GetMDomain(ref double outMMin, ref double outMMax)
Parameters
GetMFalseOriginAndUnits(ref double, ref double)
Get the measure false origin and units.
void GetMFalseOriginAndUnits(ref double falseM, ref double mUnits)
Parameters
GetZDomain(ref double, ref double)
Get the Z domain extent.
void GetZDomain(ref double outZMin, ref double outZMax)
Parameters
GetZFalseOriginAndUnits(ref double, ref double)
Get the Z false origin and units.
void GetZFalseOriginAndUnits(ref double falseZ, ref double zUnits)
Parameters
HasMPrecision()
Returns true when m-value precision information has been defined.
bool HasMPrecision()
Returns
HasXYPrecision()
Returns true when (x,y) precision information has been defined.
bool HasXYPrecision()
Returns
HasZPrecision()
Returns true when z-value precision information has been defined.
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
IsPrecisionEqual(ISpatialReference, ref bool)
Returns TRUE when the precision information for the two spatial references is the same.
void IsPrecisionEqual(ISpatialReference otherSR, ref 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
IsZPrecisionEqual(ISpatialReference)
Returns true if the Z precisions of the two spatial references are the same.
bool IsZPrecisionEqual(ISpatialReference otherSR)
Parameters
otherSRISpatialReference
Returns
SetDomain(double, double, double, double)
Set the xy domain extent.
void SetDomain(double XMin, double XMax, double YMin, double YMax)
Parameters
SetFalseOriginAndUnits(double, double, double)
Set the false origin and units.
void SetFalseOriginAndUnits(double falseX, double falseY, double xyUnits)
Parameters
SetMDomain(double, double)
Set the measure domain extent.
void SetMDomain(double inMMin, double inMMax)
Parameters
SetMFalseOriginAndUnits(double, double)
Set the measure false origin and units.
void SetMFalseOriginAndUnits(double falseM, double mUnits)
Parameters
SetZDomain(double, double)
Set the z domain extent.
void SetZDomain(double inZMin, double inZMax)
Parameters
SetZFalseOriginAndUnits(double, double)
Set the Z false origin and units.
void SetZFalseOriginAndUnits(double falseZ, double zUnits)