Public Sub New()
Public Sub New(ByVal baseCoordSys As GeoCalcNET.CoordSys, ByVal pointType As GeoCalcNET.CoordPoint.ClassType, ByVal mathType As GeoCalcNET.MathTransform.ClassType)
public FittedCoordSys()
public FittedCoordSys(GeoCalcNET.CoordSys baseCoordSys, GeoCalcNET.CoordPoint.ClassType pointType, GeoCalcNET.MathTransform.ClassType mathType)
The FittedCoordSys constructor creates a new instance of the FittedCoordSys class. Upon construction, the MathTransforms used by the TransformAhead and TransformBack properties still need to be customized before the FittedCoordSys can be used. There are two signatures for this constructor.
The first constructor takes no arguments and produces a FittedCoordSys that is not ready to use. The BaseCoordSys property must be set, and the MathTransforms used for TransformAhead and TransformBack need to be set up.
The second constructor takes three arguments that allow the user to specify the BaseCoordSys, the type of point to be used in the FittedCoordSys, and the type of MathTransform to use for TransformAhead and TransformBack. The MathTransforms still need to be customized before the FittedCoordSys can be used.
Private Sub GeoCalcNET_FittedCoordSys(ByVal data As GeoCalcNET.DataSourceComponent)
Dim baseCS As GeoCalcNET.GeodeticCoordSys = data.GetGeodeticCoordSys("BMG", "WGS84_coordinate_system")
Dim fcs1 As New GeoCalcNET.FittedCoordSys
fcs1.BaseCoordSys = baseCS
fcs1.TransformAhead.Parameters.FloatItem("dx") = 0
fcs1.TransformAhead.Parameters.FloatItem("dxx") = 1
fcs1.TransformAhead.Parameters.FloatItem("dxy") = 0
fcs1.TransformAhead.Parameters.FloatItem("dy") = 0
fcs1.TransformAhead.Parameters.FloatItem("dyy") = 1
fcs1.TransformAhead.Parameters.FloatItem("dyx") = 0
fcs1.TransformBack.Parameters.FloatItem("dx") = 0
fcs1.TransformBack.Parameters.FloatItem("dxx") = 1
fcs1.TransformBack.Parameters.FloatItem("dxy") = 0
fcs1.TransformBack.Parameters.FloatItem("dy") = 0
fcs1.TransformBack.Parameters.FloatItem("dyy") = 1
fcs1.TransformBack.Parameters.FloatItem("dyx") = 0
Dim ptType As GeoCalcNET.CoordPoint.ClassType = GeoCalcNET.CoordPoint.ClassType.Geodetic
Dim mtType As GeoCalcNET.MathTransform.ClassType = GeoCalcNET.MathTransform.ClassType.Affine
Dim fcs2 As New GeoCalcNET.FittedCoordSys(baseCS, ptType, mtType)
fcs2.TransformAhead.Parameters.FloatItem("dx") = 0
fcs2.TransformAhead.Parameters.FloatItem("dxx") = 1
fcs2.TransformAhead.Parameters.FloatItem("dxy") = 0
fcs2.TransformAhead.Parameters.FloatItem("dy") = 0
fcs2.TransformAhead.Parameters.FloatItem("dyy") = 1
fcs2.TransformAhead.Parameters.FloatItem("dyx") = 0
fcs2.TransformBack.Parameters.FloatItem("dx") = 0
fcs2.TransformBack.Parameters.FloatItem("dxx") = 1
fcs2.TransformBack.Parameters.FloatItem("dxy") = 0
fcs2.TransformBack.Parameters.FloatItem("dy") = 0
fcs2.TransformBack.Parameters.FloatItem("dyy") = 1
fcs2.TransformBack.Parameters.FloatItem("dyx") = 0
End Sub
private void GeoCalcNET_FittedCoordSys(GeoCalcNET.DataSourceComponent data)
{
GeoCalcNET.CoordSys baseCS = data.GetGeodeticCoordSys("BMG", "WGS84_coordinate_system");
GeoCalcNET.FittedCoordSys fcs1 = new GeoCalcNET.FittedCoordSys();
fcs1.BaseCoordSys = baseCS;
fcs1.TransformAhead.Parameters.set_FloatItem("dx", 0);
fcs1.TransformAhead.Parameters.set_FloatItem("dxx", 1);
fcs1.TransformAhead.Parameters.set_FloatItem("dxy", 0);
fcs1.TransformAhead.Parameters.set_FloatItem("dy", 0);
fcs1.TransformAhead.Parameters.set_FloatItem("dyx", 0);
fcs1.TransformAhead.Parameters.set_FloatItem("dyy", 1);
fcs1.TransformBack.Parameters.set_FloatItem("dx", 0);
fcs1.TransformBack.Parameters.set_FloatItem("dxx", 1);
fcs1.TransformBack.Parameters.set_FloatItem("dxy", 0);
fcs1.TransformBack.Parameters.set_FloatItem("dy", 0);
fcs1.TransformBack.Parameters.set_FloatItem("dyx", 0);
fcs1.TransformBack.Parameters.set_FloatItem("dyy", 1);
GeoCalcNET.CoordPoint.ClassType ptType = GeoCalcNET.CoordPoint.ClassType.Geodetic;
GeoCalcNET.MathTransform.ClassType mtType = GeoCalcNET.MathTransform.ClassType.Affine;
GeoCalcNET.FittedCoordSys fcs2 = new GeoCalcNET.FittedCoordSys(baseCS, ptType, mtType);
fcs2.TransformAhead.Parameters.set_FloatItem("dx", 0);
fcs2.TransformAhead.Parameters.set_FloatItem("dxx", 1);
fcs2.TransformAhead.Parameters.set_FloatItem("dxy", 0);
fcs2.TransformAhead.Parameters.set_FloatItem("dy", 0);
fcs2.TransformAhead.Parameters.set_FloatItem("dyx", 0);
fcs2.TransformAhead.Parameters.set_FloatItem("dyy", 1);
fcs2.TransformBack.Parameters.set_FloatItem("dx", 0);
fcs2.TransformBack.Parameters.set_FloatItem("dxx", 1);
fcs2.TransformBack.Parameters.set_FloatItem("dxy", 0);
fcs2.TransformBack.Parameters.set_FloatItem("dy", 0);
fcs2.TransformBack.Parameters.set_FloatItem("dyx", 0);
fcs2.TransformBack.Parameters.set_FloatItem("dyy", 1);
}