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

Convert co-ordinates between WGS-84 and OSGB36.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.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 LocationCollection ConvertBack(LocationCollection collection)
Parameters:collectionLocationCollection

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

Returns:

LocationCollection

Converted collection.

Implements: ICoordinateConverter.ConvertBack(LocationCollection)

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 LocationCollection ConvertTo(LocationCollection collection)
Parameters:collectionLocationCollection

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

Returns:

LocationCollection

Converted collection.

Implements: ICoordinateConverter.ConvertTo(LocationCollection)

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

C#
public Location FromLocation(Location location)
Parameters:locationLocation

Location to be converter.

Returns:

Location

Coordinate system specific location.

Implements: ICoordinateConverter.FromLocation(Location)

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

C#
public Location 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:

Location

Location.

Implements: ICoordinateConverter.ToLocation(object)

Converts Location to Coordinate system specific string.

C#
public string ToString(Location location)
Parameters:locationLocation

Location.

Returns:

string

Coordinate system specific string.

Implements: ICoordinateConverter.ToString(Location)