Parameters Property

Type

GeoCalcNET.ParameterCollection

 

Access

Get only

 

Description

The Parameters property provides access to the ParameterCollection that stores the values used to customize this Projection.  For a description of the specific parameters needed by each projection, click on the appropriate projection type in the ClassType enumeration.

 

Example

[VB]

Private Sub GeoCalcNET_Projection_Parameters(ByVal proj As GeoCalcNET.Projection, ByVal data As GeoCalcNET.DataSourceComponent)

Dim pc As GeoCalcNET.ParameterCollection = proj.Parameters

If proj.Class = GeoCalcNET.Projection.ClassType.TransverseMercator Then

If pc.Exists("latitude_of_origin") Then

Dim av As New GeoCalcNET.AngularValue

av.Units = data.GetAngularUnit("BMG", "DEGREES")

av.InUnits = 0

pc.AngularItem("latitude_of_origin") = av

End If

End If

End Sub

 

[C#]

private void GeoCalcNET_Projection_Parameters(GeoCalcNET.Projection proj, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.ParameterCollection pc = proj.Parameters;

 

if(proj.Class == GeoCalcNET.Projection.ClassType.TransverseMercator)

{

if(pc.Exists("central_meridian"))

{

GeoCalcNET.AngularValue av = new GeoCalcNET.AngularValue();

av.InDegrees = 46.5;

pc.set_AngularItem("central_meridian", av);

}

if(pc.Exists("latitude_of_origin"))

{

GeoCalcNET.AngularValue av = new GeoCalcNET.AngularValue();

av.InDegrees = 29.0262683333333;

pc.set_AngularItem("latitude_of_origin", av);

}

if(pc.Exists("false_easting"))

{

GeoCalcNET.LinearValue lv = new GeoCalcNET.LinearValue();

lv.InMeters = 800000;

pc.set_LinearItem("false_easting", lv);

}

if(pc.Exists("false_northing"))

{

GeoCalcNET.LinearValue lv = new GeoCalcNET.LinearValue();

lv.InMeters = 0;

pc.set_LinearItem("false_northing", lv);

}

}

}