Longitude Property

Type

GeoCalcNET.AngularValue

 

Access

Get/Set

 

Description

The Longitude property provides access to the AngularValue that gives the longitude of this point.  The longitude of a point is the  angular distance on the earth's surface, measured east or west from the PrimeMeridian to the meridian passing through the point.

 

Example

[VB]

Private Sub GeoCalcNET_GeodeticPoint_Longitude(ByVal pt As GeoCalcNET.GeodeticPoint, ByVal data As GeoCalcNET.DataSourceComponent)

Dim lon As GeoCalcNET.AngularValue = pt.Longitude

Dim av As New GeoCalcNET.AngularValue

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

av.InUnits = -32.2

pt.Longitude = av

End Sub

 

[C#]

private void GeoCalcNET_GeodeticPoint_Longitude(GeoCalcNET.GeodeticPoint pt, GeoCalcNET.DataSourceComponent data)

{

GeoCalcNET.AngularValue lon = pt.Longitude;

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

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

av.InUnits = 1.08;

pt.Longitude = av;

}