Class ProjectiveTransformation2DClass

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll
[Guid("F82EB04A-4E5A-43C7-9A54-457439AA8E9E")]
[ClassInterface(ClassInterfaceType.None)]
public class ProjectiveTransformation2DClass : ProjectiveTransformation2D, ITransformationGEN, IProjectiveTransformation2DGEN, IProjectiveTransformation2D, ITransformation, IClone, ISupportErrorInfo
Inheritance
ProjectiveTransformation2DClass
Implements
Inherited Members

Constructors

ProjectiveTransformation2DClass()

public ProjectiveTransformation2DClass()

Explicit Interface Implementations

Assign(IClone)

Assigns the properties of src to the receiver.

virtual void Assign(IClone src)

Parameters

src IClone

Clone()

Clones the receiver and assigns the result to *clone.

virtual IClone Clone()

Returns

IClone

DefineFromControlPoints(ref IPoint[], ref IPoint[])

Defines the best projective transformation between two sets of points. Can be used to register paper maps on a digitizer.

virtual void DefineFromControlPoints(ref IPoint[] fromPoints, ref IPoint[] toPoints)

Parameters

fromPoints IPoint[]
toPoints IPoint[]

DefineFromControlPoints(int, ref IPoint, ref IPoint)

Defines the best projective transformation between two sets of points. Can be used to register paper maps on a digitizer.

virtual void DefineFromControlPoints(int numPoints, ref IPoint fromPoints, ref IPoint toPoints)

Parameters

numPoints int
fromPoints IPoint
toPoints IPoint

DefineFromControlPointsEx(int, ref WKSPoint, ref WKSPoint)

Defines the best projective transformation between two sets of points. Can be used to register paper maps on a digitizer.

virtual void DefineFromControlPointsEx(int numPoints, ref WKSPoint fromPoints, ref WKSPoint toPoints)

Parameters

numPoints int
fromPoints WKSPoint
toPoints WKSPoint

GetControlPointError(int, ref double, ref double)

Returns the errors involved in moving control point i from the 'from' to 'to' system. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

virtual void GetControlPointError(int i, ref double fromError, ref double toError)

Parameters

i int
fromError double
toError double

GetRMSError(ref double, ref double)

RMS (Root Mean Square) error expressed relative to the 'from' and 'to' points defining the transformation. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

virtual void GetRMSError(ref double fromError, ref double toError)

Parameters

fromError double
toError double

IProjectiveTransformation2DGEN_TransformMeasuresFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point measures to floating point measures (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformMeasuresFF(esriTransformDirection Direction, ref double[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures double[]

IProjectiveTransformation2DGEN_TransformMeasuresFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point measures to integer measures (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformMeasuresFI(esriTransformDirection Direction, ref double[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures int[]

IProjectiveTransformation2DGEN_TransformMeasuresIF(esriTransformDirection, ref int[], ref double[])

Transforms integer measures to floating point measures (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformMeasuresIF(esriTransformDirection Direction, ref int[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures double[]

IProjectiveTransformation2DGEN_TransformMeasuresII(esriTransformDirection, ref int[], ref int[])

Transforms integer measures to integer measures (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformMeasuresII(esriTransformDirection Direction, ref int[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures int[]

IProjectiveTransformation2DGEN_TransformPointsFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point points to floating point points (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformPointsFF(esriTransformDirection Direction, ref double[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints double[]

IProjectiveTransformation2DGEN_TransformPointsFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point points to integer points (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformPointsFI(esriTransformDirection Direction, ref double[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints int[]

IProjectiveTransformation2DGEN_TransformPointsIF(esriTransformDirection, ref int[], ref double[])

Transforms integer points to floating point points (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformPointsIF(esriTransformDirection Direction, ref int[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints double[]

IProjectiveTransformation2DGEN_TransformPointsII(esriTransformDirection, ref int[], ref int[])

Transforms integer points to integer points (or do the inverse).

virtual void IProjectiveTransformation2DGEN_TransformPointsII(esriTransformDirection Direction, ref int[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints int[]

IProjectiveTransformation2D_GetControlPointError(int, out double, out double)

Returns the errors involved in moving control point i from the 'from' to 'to' system. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

virtual void IProjectiveTransformation2D_GetControlPointError(int i, out double fromError, out double toError)

Parameters

i int
fromError double
toError double

IProjectiveTransformation2D_GetRMSError(out double, out double)

RMS (Root Mean Square) error expressed relative to the 'from' and 'to' points defining the transformation. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

virtual void IProjectiveTransformation2D_GetRMSError(out double fromError, out double toError)

Parameters

fromError double
toError double

IProjectiveTransformation2D_Project(ISpatialReference)

Moves this transformation into another spatial reference. If the transformations contains only translations, then use the MoveOrigin property to define an equivalent translation in the new spatial reference.

virtual void IProjectiveTransformation2D_Project(ISpatialReference newSpatialReference)

Parameters

newSpatialReference ISpatialReference

IProjectiveTransformation2D_Reset()

Resets the tranformation.

virtual void IProjectiveTransformation2D_Reset()

IProjectiveTransformation2D_SpatialReference

The spatial reference in which this transformation is meaningful.

virtual ISpatialReference IProjectiveTransformation2D_SpatialReference { get; set; }

Returns

ISpatialReference

IProjectiveTransformation2D_TransformMeasuresFF(esriTransformDirection, int, ref double, ref double)

virtual void IProjectiveTransformation2D_TransformMeasuresFF(esriTransformDirection Direction, int cMeasures, ref double inMeasures, ref double outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures double
outMeasures double

IProjectiveTransformation2D_TransformMeasuresFI(esriTransformDirection, int, ref double, ref int)

virtual void IProjectiveTransformation2D_TransformMeasuresFI(esriTransformDirection Direction, int cMeasures, ref double inMeasures, ref int outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures double
outMeasures int

IProjectiveTransformation2D_TransformMeasuresIF(esriTransformDirection, int, ref int, ref double)

virtual void IProjectiveTransformation2D_TransformMeasuresIF(esriTransformDirection Direction, int cMeasures, ref int inMeasures, ref double outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures int
outMeasures double

IProjectiveTransformation2D_TransformMeasuresII(esriTransformDirection, int, ref int, ref int)

virtual void IProjectiveTransformation2D_TransformMeasuresII(esriTransformDirection Direction, int cMeasures, ref int inMeasures, ref int outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures int
outMeasures int

IProjectiveTransformation2D_TransformPointsFF(esriTransformDirection, int, ref double, ref double)

virtual void IProjectiveTransformation2D_TransformPointsFF(esriTransformDirection Direction, int cPoints, ref double inPoints, ref double outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints double
outPoints double

IProjectiveTransformation2D_TransformPointsFI(esriTransformDirection, int, ref double, ref int)

virtual void IProjectiveTransformation2D_TransformPointsFI(esriTransformDirection Direction, int cPoints, ref double inPoints, ref int outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints double
outPoints int

IProjectiveTransformation2D_TransformPointsIF(esriTransformDirection, int, ref int, ref double)

virtual void IProjectiveTransformation2D_TransformPointsIF(esriTransformDirection Direction, int cPoints, ref int inPoints, ref double outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints int
outPoints double

IProjectiveTransformation2D_TransformPointsII(esriTransformDirection, int, ref int, ref int)

virtual void IProjectiveTransformation2D_TransformPointsII(esriTransformDirection Direction, int cPoints, ref int inPoints, ref int outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints int
outPoints int

InterfaceSupportsErrorInfo(ref Guid)

virtual void InterfaceSupportsErrorInfo(ref Guid riid)

Parameters

riid Guid

IsEqual(IClone)

Indicates if the receiver and other have the same properties.

virtual bool IsEqual(IClone other)

Parameters

other IClone

Returns

bool

IsIdentical(IClone)

Indicates if the receiver and other are the same object.

virtual bool IsIdentical(IClone other)

Parameters

other IClone

Returns

bool

Project(ISpatialReference)

Moves this transformation into another spatial reference. If the transformations contains only translations, then use the MoveOrigin property to define an equivalent translation in the new spatial reference.

virtual void Project(ISpatialReference newSpatialReference)

Parameters

newSpatialReference ISpatialReference

QueryTransformationParameters(esriTransformDirection, ref double)

Returns the eight parameters which define the two dimensional projective transformation.

virtual void QueryTransformationParameters(esriTransformDirection Direction, ref double @params)

Parameters

Direction esriTransformDirection
params double

QueryTransformationParameters(esriTransformDirection, ref double[])

Returns the eight parameters which define the two dimensional projective transformation.

virtual void QueryTransformationParameters(esriTransformDirection Direction, ref double[] @params)

Parameters

Direction esriTransformDirection
params double[]

Reset()

Resets the tranformation.

virtual void Reset()

SetTransformationParameters(esriTransformDirection, ref double)

Sets the eight parameters which define the two dimensional projective transformation.

virtual void SetTransformationParameters(esriTransformDirection Direction, ref double @params)

Parameters

Direction esriTransformDirection
params double

SetTransformationParameters(esriTransformDirection, ref double[])

Sets the eight parameters which define the two dimensional projective transformation. The size of the incoming parameter array needs to be 8.

virtual void SetTransformationParameters(esriTransformDirection Direction, ref double[] @params)

Parameters

Direction esriTransformDirection
params double[]

SpatialReference

The spatial reference in which this transformation is meaningful.

virtual ISpatialReference SpatialReference { get; set; }

Returns

ISpatialReference

TransformMeasuresFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point measures to floating point measures (or do the inverse).

virtual void TransformMeasuresFF(esriTransformDirection Direction, ref double[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures double[]

TransformMeasuresFF(esriTransformDirection, int, ref double, ref double)

Transforms floating point measures to floating point measures (or do the inverse).

virtual void TransformMeasuresFF(esriTransformDirection Direction, int cMeasures, ref double inMeasures, ref double outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures double
outMeasures double

TransformMeasuresFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point measures to integer measures (or do the inverse).

virtual void TransformMeasuresFI(esriTransformDirection Direction, ref double[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures int[]

TransformMeasuresFI(esriTransformDirection, int, ref double, ref int)

Transforms floating point measures to integer measures (or do the inverse).

virtual void TransformMeasuresFI(esriTransformDirection Direction, int cMeasures, ref double inMeasures, ref int outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures double
outMeasures int

TransformMeasuresIF(esriTransformDirection, int, ref int, ref double)

Transforms integer measures to floating point measures (or do the inverse).

virtual void TransformMeasuresIF(esriTransformDirection Direction, int cMeasures, ref int inMeasures, ref double outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures int
outMeasures double

TransformMeasuresIF(esriTransformDirection, ref int[], ref double[])

Transforms integer measures to floating point measures (or do the inverse).

virtual void TransformMeasuresIF(esriTransformDirection Direction, ref int[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures double[]

TransformMeasuresII(esriTransformDirection, int, ref int, ref int)

Transforms integer measures to integer measures (or do the inverse).

virtual void TransformMeasuresII(esriTransformDirection Direction, int cMeasures, ref int inMeasures, ref int outMeasures)

Parameters

Direction esriTransformDirection
cMeasures int
inMeasures int
outMeasures int

TransformMeasuresII(esriTransformDirection, ref int[], ref int[])

Transforms integer measures to integer measures (or do the inverse).

virtual void TransformMeasuresII(esriTransformDirection Direction, ref int[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures int[]

TransformPointsFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point points to floating point points (or do the inverse).

virtual void TransformPointsFF(esriTransformDirection Direction, ref double[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints double[]

TransformPointsFF(esriTransformDirection, int, ref double, ref double)

Transforms floating point points to floating point points (or do the inverse).

virtual void TransformPointsFF(esriTransformDirection Direction, int cPoints, ref double inPoints, ref double outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints double
outPoints double

Remarks

The cPoints parameter is the number of points you wish to transform. inPoints and outPoints are one-dimensional arrays so you must interleave coordinate pairs into the arrays.

[C#]

The cPoints parameter is the number of points you wish to transform. inPoints and outPoints are one-dimensional arrays so you must interleave coordinate pairs into the arrays.  This code is a shift of the points to the east and north.

 

            IAffineTransformation2D transform = new AffineTransformation2D() as IAffineTransformation2D;
            //Sets the type of transformation moving the values 10 degrees East and 20 degrees North
            transform.Move(10, 20);
            //Create two single dimensioned arrays for the inPoints and OutPoints
            double[] inPoints = new double[4];
            double[] outPoints = new double[4];




            //Interleave the Longitude and Latitude value for two points 1.1E 5.2N, 2.3E 6.4N
            inPoints[0]=1.1; //Longitude point 1
            inPoints[1]=5.2; //Latitude point 1
            inPoints[2]=2.3; //Longitude point 2
            inPoints[3] = 6.4; //Latitude point 2



            transform.TransformPointsFF(0,2,ref inPoints[0],ref outPoints[0]);
            Debug.Print(outPoints[0].ToString()); //11.1
            Debug.Print(outPoints[1].ToString()); //25.2
            Debug.Print(outPoints[2].ToString()); //12.3
            Debug.Print(outPoints[3].ToString()); //26.4



TransformPointsFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point points to integer points (or do the inverse).

virtual void TransformPointsFI(esriTransformDirection Direction, ref double[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints int[]

TransformPointsFI(esriTransformDirection, int, ref double, ref int)

Transforms floating point points to integer points (or do the inverse).

virtual void TransformPointsFI(esriTransformDirection Direction, int cPoints, ref double inPoints, ref int outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints double
outPoints int

Remarks

The cPoints parameter is the number of points you wish to transform. inPoints and outPoints are one-dimensional arrays so you must interleave coordinate pairs into the arrays.

TransformPointsIF(esriTransformDirection, int, ref int, ref double)

Transforms integer points to floating point points (or do the inverse).

virtual void TransformPointsIF(esriTransformDirection Direction, int cPoints, ref int inPoints, ref double outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints int
outPoints double

Remarks

The cPoints parameter is the number of points you wish to transform. inPoints and outPoints are one-dimensional arrays so you must interleave coordinate pairs into the arrays.

TransformPointsIF(esriTransformDirection, ref int[], ref double[])

Transforms integer points to floating point points (or do the inverse).

virtual void TransformPointsIF(esriTransformDirection Direction, ref int[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints double[]

TransformPointsII(esriTransformDirection, int, ref int, ref int)

Transforms integer points to integer points (or do the inverse).

virtual void TransformPointsII(esriTransformDirection Direction, int cPoints, ref int inPoints, ref int outPoints)

Parameters

Direction esriTransformDirection
cPoints int
inPoints int
outPoints int

Remarks

The cPoints parameter is the number of points you wish to transform. inPoints and outPoints are one-dimensional arrays so you must interleave coordinate pairs into the arrays.

TransformPointsII(esriTransformDirection, ref int[], ref int[])

Transforms integer points to integer points (or do the inverse).

virtual void TransformPointsII(esriTransformDirection Direction, ref int[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints int[]