New to Telerik UI for WinFormsStart a free 30-day trial

Convert co-ordinates between WGS-84 and OSGB36.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.RadMap.dll

Syntax:

C#
public class OSGB36Converter : ICoordinateConverter

Inheritance: objectOSGB36Converter

Implements: ICoordinateConverter

Constructors

C#
public OSGB36Converter()

Methods

Convert from the collection of coordinates are given in the form specific for the coordinate system other than WGS 1984 to the collection of the WGS 1984 coordinates.

C#
public List<PointG> ConvertBack(List<PointG> collection)
Parameters:collectionList<PointG>

Collection of coordinates are given in the form specific for the coordinate system.

Returns:

List<PointG>

Converted collection.

Implements: ICoordinateConverter.ConvertBack(List<PointG>)

Convert from the collection of coordinates are given in the WGS 1984 coordinates to the form specific for the coordinate system other than WGS 1984.

C#
public List<PointG> ConvertTo(List<PointG> collection)
Parameters:collectionList<PointG>

Collection of coordinates are given in the form specific for the coordinate system.

Returns:

List<PointG>

Converted collection.

Implements: ICoordinateConverter.ConvertTo(List<PointG>)

Converts from the latitude/longitude to the representation specific for the coordinate system other than WGS 1984.

C#
public PointG FromLocation(PointG location)
Parameters:locationPointG

Location to be converter.

Returns:

PointG

Coordinate system specific location.

Implements: ICoordinateConverter.FromLocation(PointG)

Convert OS grid reference to the WGS 1984 latitude/longitude.

C#
public PointG ToLocation(object coordinates)
Parameters:coordinatesobject

OS grid reference. Can be string which represents standard grid reference, or Point object which represents fully numeric reference.

Returns:

PointG

Location.

Implements: ICoordinateConverter.ToLocation(object)

Converts Location to Coordinate system specific string.

C#
public string ToString(PointG location)
Parameters:locationPointG

Location.

Returns:

string

Coordinate system specific string.

Implements: ICoordinateConverter.ToString(PointG)