Class
SpatialReference

The OGC Spatial Reference requirements.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class SpatialReference : ISpatialReference

Inheritance: objectSpatialReference

Derived Classes: MercatorProjectionProportionalProjection

Implements: ISpatialReference

Constructors

SpatialReference()

Declaration

cs-api-definition
public SpatialReference()

Fields

HalfPI

Half of PI.

Declaration

cs-api-definition
public const double HalfPI = 0.159154943091895

Field Value

double

RadiansToDegrees

Degrees of one radiant.

Declaration

cs-api-definition
public const double RadiansToDegrees = 57.2957795130823

Field Value

double

Properties

AngularUnitOfMeasurement

Gets or sets the measurement units used to define the angles of a spheroid or ellipse associated with a specific datum. The datum is WGS 1984 and the unit of measurement is a degree.

Declaration

cs-api-definition
public double AngularUnitOfMeasurement { get; set; }

Property Value

double

Implements ISpatialReference.AngularUnitOfMeasurement

Authority

Gets or sets the authority body that defines the standards for the spatial reference parameters. The Spatial Reference is WGS 1984 and the authority is EPSG:4326.

Declaration

cs-api-definition
public string Authority { get; set; }

Property Value

string

Implements ISpatialReference.Authority

CentralMeridian

Gets or sets the line of longitude at the center of a map projection generally used as the basis for constructing the projection.

Declaration

cs-api-definition
public double CentralMeridian { get; set; }

Property Value

double

Implements ISpatialReference.CentralMeridian

Datum

Gets or sets the horizontal datum, which corresponds to the procedure used to measure positions on the surface of the Earth.

Declaration

cs-api-definition
public string Datum { get; set; }

Property Value

string

Implements ISpatialReference.Datum

DatumAuthority

Gets or sets the horizontal datum, which corresponds to the procedure used to measure positions on the surface of the Earth.

Declaration

cs-api-definition
public string DatumAuthority { get; set; }

Property Value

string

Implements ISpatialReference.DatumAuthority

FalseEasting

Gets or sets value added to all "x" values in the rectangular coordinate for a map projection. This value frequently is assigned to eliminate negative numbers. Expressed in the unit of measure identified in Planar Coordinate Units.

Declaration

cs-api-definition
public double FalseEasting { get; set; }

Property Value

double

Implements ISpatialReference.FalseEasting

FalseNorthing

Gets or sets value added to all "y" values in the rectangular coordinates for a map projection. This value frequently is assigned to eliminate negative numbers. Expressed in the unit of measure identified in Planar Coordinate Units.

Declaration

cs-api-definition
public double FalseNorthing { get; set; }

Property Value

double

Implements ISpatialReference.FalseNorthing

GeoGcs

Gets or sets coordinate system based on latitude and longitude. Some geographic coordinate systems are Latitude/Longitude, and some are Longitude/Latitude. You can find out which this is by examining the axes. You should also check the angular units, since not all geographic coordinate systems use degrees.

Declaration

cs-api-definition
public string GeoGcs { get; set; }

Property Value

string

Implements ISpatialReference.GeoGcs

LatitudeOfOrigin

Gets or sets the latitude chosen as the origin of rectangular coordinate for a map projection.

Declaration

cs-api-definition
public double LatitudeOfOrigin { get; set; }

Property Value

double

Implements ISpatialReference.LatitudeOfOrigin

MaxLatitude

The maximum Latitude this tile source supports.

Declaration

cs-api-definition
public double MaxLatitude { get; set; }

Property Value

double

Implements ISpatialReference.MaxLatitude

MaxLongitude

The maximum Longitude this tile source supports.

Declaration

cs-api-definition
public double MaxLongitude { get; set; }

Property Value

double

Implements ISpatialReference.MaxLongitude

MinLatitude

The minimum Latitude this tile source supports.

Declaration

cs-api-definition
public double MinLatitude { get; set; }

Property Value

double

Implements ISpatialReference.MinLatitude

MinLongitude

The minimum Longitude this tile source supports.

Declaration

cs-api-definition
public double MinLongitude { get; set; }

Property Value

double

Implements ISpatialReference.MinLongitude

OffsetX

Gets or sets logical X offset to centre of earth.

Declaration

cs-api-definition
public double OffsetX { get; set; }

Property Value

double

OffsetY

Gets or sets logical Y offset to centre of earth.

Declaration

cs-api-definition
public double OffsetY { get; set; }

Property Value

double

Primem

Gets or sets the meridian used to take longitude measurements from. The units of the longitude must be inferred from the context.

Declaration

cs-api-definition
public double Primem { get; set; }

Property Value

double

Implements ISpatialReference.Primem

PrimemAuthority

Gets or sets the meridian used to take longitude measurements from. The units of the longitude must be inferred from the context.

Declaration

cs-api-definition
public string PrimemAuthority { get; set; }

Property Value

string

Implements ISpatialReference.PrimemAuthority

ProjectionAuthority

Gets or sets a projection from geographic coordinates to projected coordinates.

Declaration

cs-api-definition
public string ProjectionAuthority { get; set; }

Property Value

string

Implements ISpatialReference.ProjectionAuthority

ScaleX

Gets or sets the real world coordinate scale at a given longitude.

Declaration

cs-api-definition
public double ScaleX { get; set; }

Property Value

double

ScaleY

Gets or sets the real world coordinate scale at a given latitude.

Declaration

cs-api-definition
public double ScaleY { get; set; }

Property Value

double

SpheroidAuthority

Gets or sets a spheroid, which is an approximation of the Earth's surface as a squashed sphere.

Declaration

cs-api-definition
public string SpheroidAuthority { get; set; }

Property Value

string

Implements ISpatialReference.SpheroidAuthority

SpheroidFlattening

Gets or sets a spheroid, which is an approximation of the Earth's surface as a squashed sphere.

Declaration

cs-api-definition
public double SpheroidFlattening { get; set; }

Property Value

double

Implements ISpatialReference.SpheroidFlattening

SpheroidRadius

Gets or sets a spheroid, which is an approximation of the Earth's surface as a squashed sphere.

Declaration

cs-api-definition
public double SpheroidRadius { get; set; }

Property Value

double

Implements ISpatialReference.SpheroidRadius

StandardParallel

Gets or sets the line of constant latitude at which the surface of the Earth and the plane or developable surface intersect.

Declaration

cs-api-definition
public double StandardParallel { get; set; }

Property Value

double

Implements ISpatialReference.StandardParallel

UnitAuthority

Gets or sets the authority body that defines the unit of measurement i.e. European Petroleum Survey Group (EPSG). The unit of measurement is usually degrees and the authority for the datum the map uses, WGS 1984 is EPSG:4326.

Declaration

cs-api-definition
public string UnitAuthority { get; set; }

Property Value

string

Implements ISpatialReference.UnitAuthority

Methods

GeographicToLogical(Location)

Converts a geographical coordinate (Longitude, Latitude) to a logical Point (0->1).

Declaration

cs-api-definition
public virtual Point GeographicToLogical(Location geographicPoint)

Parameters

geographicPoint

Location

The geographical coordinate (Longitude, Latitude).

Returns

Point

The logical Point.

Implements ISpatialReference.GeographicToLogical(Location)

GetSizeInKilometers(Location, Size)

Calculate size of rectangle from base point.

Declaration

cs-api-definition
public virtual Size GetSizeInKilometers(Location basePoint, Size size)

Parameters

basePoint

Location

Base point (left-top).

size

Size

Size in degrees.

Returns

Size

Size of rectangle in kilometers.

Implements ISpatialReference.GetSizeInKilometers(Location, Size)

GetSizeInReferenceUnits(Location, Size)

Calculate size of rectangle from base point.

Declaration

cs-api-definition
public virtual Size GetSizeInReferenceUnits(Location basePoint, Size size)

Parameters

basePoint

Location

Base point (left-top).

size

Size

Size in kilometers.

Returns

Size

Size of rectangle in degrees.

Implements ISpatialReference.GetSizeInReferenceUnits(Location, Size)

LogicalToGeographic(Point)

Converts a logical Point (0->1) to a geographical coordinate (Longitude, Latitude).

Declaration

cs-api-definition
public virtual Location LogicalToGeographic(Point logicalPoint)

Parameters

logicalPoint

Point

The logical Point.

Returns

Location

The geographical coordinate (Longitude, Latitude).

Implements ISpatialReference.LogicalToGeographic(Point)