C# Класс SharpMap.CoordinateSystems.Projections.MapProjection

Projections inherit from this abstract class to get access to useful mathematical functions.
Наследование: SharpMap.CoordinateSystems.Transformations.MathTransform, IProjection
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_Parameters List
_e double
_es double
_inverse SharpMap.CoordinateSystems.Transformations.MathTransform
_isInverse bool
_isSpherical bool
_semiMajor double
_semiMinor double

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
DegreesToMeters ( SharpMap lonlat ) : SharpMap.Geometries.Point
EqualParams ( object obj ) : bool

Checks whether the values of this instance is equal to the values of another instance. Only parameters used for coordinate system are used for comparison. Name, abbreviation, authority, alias and remarks are ignored in the comparison.

GetParameter ( int Index ) : ProjectionParameter
GetParameter ( string name ) : ProjectionParameter

Gets an named parameter of the projection.

The parameter name is case insensitive

Invert ( ) : void

Reverses the transformation

MetersToDegrees ( SharpMap p ) : SharpMap.Geometries.Point
Transform ( SharpMap cp ) : SharpMap.Geometries.Point
TransformList ( List ord ) : List

Защищенные методы

Метод Описание
CUBE ( double x ) : double

Returns the cube of a number.

GMAX ( double &A, double &B ) : double

GMIN ( double &A, double &B ) : double

IMOD ( double A, double B ) : double

IMOD

LatitudeToRadians ( double y, bool edge ) : double

Converts a latitude value in degrees to radians.

LongitudeToRadians ( double x, bool edge ) : double

Converts a longitude value in degrees to radians.

MapProjection ( List parameters ) : System
MapProjection ( List parameters, bool isInverse ) : System
QUAD ( double x ) : double

Returns the quad of a number.

adjust_lon ( double x ) : double

asinz ( double con ) : double

Function to eliminate roundoff errors in asin

calc_utm_zone ( double lon ) : long

Function to calculate UTM zone number--NOTE Longitude entered in DEGREES!!!

e0fn ( double x ) : double

Functions to compute the constants e0, e1, e2, and e3 which are used in a series for calculating the distance along a meridian. The input x represents the eccentricity squared.

e1fn ( double x ) : double

e2fn ( double x ) : double

e3fn ( double x ) : double

e4fn ( double x ) : double

Function to compute the constant e4 from the input of the eccentricity of the spheroid, x. This constant is used in the Polar Stereographic projection.

mlfn ( double e0, double e1, double e2, double e3, double phi ) : double

Function computes the value of M which is the distance along a meridian from the Equator to latitude phi.

msfnz ( double eccent, double sinphi, double cosphi ) : double

Function to compute the constant small m which is the radius of a parallel of latitude, phi, divided by the semimajor axis.

phi1z ( double eccent, double qs, long &flag ) : double

phi2z ( double eccent, double ts, long &flag ) : double

Function to compute the latitude angle, phi2, for the inverse of the Lambert Conformal Conic and Polar Stereographic projections.

qsfnz ( double eccent, double sinphi, double cosphi ) : double

Function to compute constant small q which is the radius of a parallel of latitude, phi, divided by the semimajor axis.

sign ( double x ) : double

Function to return the sign of an argument

sincos ( double val, double &sin_val, double &cos_val ) : void

Function to calculate the sine and cosine in one call. Some computer systems have implemented this function, resulting in a faster implementation than calling each function separately. It is provided here for those computer systems which don`t implement this function

tsfnz ( double eccent, double phi, double sinphi ) : double

Function to compute the constant small t for use in the forward computations in the Lambert Conformal Conic and the Polar Stereographic projections.

Описание методов

CUBE() защищенный статический Метод

Returns the cube of a number.
protected static CUBE ( double x ) : double
x double
Результат double

DegreesToMeters() публичный абстрактный Метод

public abstract DegreesToMeters ( SharpMap lonlat ) : SharpMap.Geometries.Point
lonlat SharpMap
Результат SharpMap.Geometries.Point

EqualParams() публичный Метод

Checks whether the values of this instance is equal to the values of another instance. Only parameters used for coordinate system are used for comparison. Name, abbreviation, authority, alias and remarks are ignored in the comparison.
public EqualParams ( object obj ) : bool
obj object
Результат bool

GMAX() защищенный статический Метод

protected static GMAX ( double &A, double &B ) : double
A double
B double
Результат double

GMIN() защищенный статический Метод

protected static GMIN ( double &A, double &B ) : double
A double
B double
Результат double

GetParameter() публичный Метод

public GetParameter ( int Index ) : ProjectionParameter
Index int
Результат SharpMap.CoordinateSystems.ProjectionParameter

GetParameter() публичный Метод

Gets an named parameter of the projection.
The parameter name is case insensitive
public GetParameter ( string name ) : ProjectionParameter
name string Name of parameter
Результат SharpMap.CoordinateSystems.ProjectionParameter

IMOD() защищенный статический Метод

IMOD
protected static IMOD ( double A, double B ) : double
A double
B double
Результат double

Invert() публичный Метод

Reverses the transformation
public Invert ( ) : void
Результат void

LatitudeToRadians() защищенный статический Метод

Converts a latitude value in degrees to radians.
protected static LatitudeToRadians ( double y, bool edge ) : double
y double The value in degrees to to radians.
edge bool If true, -90 and +90 are valid, otherwise they are considered out of range.
Результат double

LongitudeToRadians() защищенный статический Метод

Converts a longitude value in degrees to radians.
protected static LongitudeToRadians ( double x, bool edge ) : double
x double The value in degrees to convert to radians.
edge bool If true, -180 and +180 are valid, otherwise they are considered out of range.
Результат double

MapProjection() защищенный Метод

protected MapProjection ( List parameters ) : System
parameters List
Результат System

MapProjection() защищенный Метод

protected MapProjection ( List parameters, bool isInverse ) : System
parameters List
isInverse bool
Результат System

MetersToDegrees() публичный абстрактный Метод

public abstract MetersToDegrees ( SharpMap p ) : SharpMap.Geometries.Point
p SharpMap
Результат SharpMap.Geometries.Point

QUAD() защищенный статический Метод

Returns the quad of a number.
protected static QUAD ( double x ) : double
x double
Результат double

Transform() публичный Метод

public Transform ( SharpMap cp ) : SharpMap.Geometries.Point
cp SharpMap
Результат SharpMap.Geometries.Point

TransformList() публичный Метод

public TransformList ( List ord ) : List
ord List
Результат List

adjust_lon() защищенный статический Метод

protected static adjust_lon ( double x ) : double
x double
Результат double

asinz() защищенный статический Метод

Function to eliminate roundoff errors in asin
protected static asinz ( double con ) : double
con double
Результат double

calc_utm_zone() защищенный статический Метод

Function to calculate UTM zone number--NOTE Longitude entered in DEGREES!!!
protected static calc_utm_zone ( double lon ) : long
lon double
Результат long

e0fn() защищенный статический Метод

Functions to compute the constants e0, e1, e2, and e3 which are used in a series for calculating the distance along a meridian. The input x represents the eccentricity squared.
protected static e0fn ( double x ) : double
x double
Результат double

e1fn() защищенный статический Метод

protected static e1fn ( double x ) : double
x double
Результат double

e2fn() защищенный статический Метод

protected static e2fn ( double x ) : double
x double
Результат double

e3fn() защищенный статический Метод

protected static e3fn ( double x ) : double
x double
Результат double

e4fn() защищенный статический Метод

Function to compute the constant e4 from the input of the eccentricity of the spheroid, x. This constant is used in the Polar Stereographic projection.
protected static e4fn ( double x ) : double
x double
Результат double

mlfn() защищенный статический Метод

Function computes the value of M which is the distance along a meridian from the Equator to latitude phi.
protected static mlfn ( double e0, double e1, double e2, double e3, double phi ) : double
e0 double
e1 double
e2 double
e3 double
phi double
Результат double

msfnz() защищенный статический Метод

Function to compute the constant small m which is the radius of a parallel of latitude, phi, divided by the semimajor axis.
protected static msfnz ( double eccent, double sinphi, double cosphi ) : double
eccent double
sinphi double
cosphi double
Результат double

phi1z() защищенный статический Метод

protected static phi1z ( double eccent, double qs, long &flag ) : double
eccent double
qs double
flag long
Результат double

phi2z() защищенный статический Метод

Function to compute the latitude angle, phi2, for the inverse of the Lambert Conformal Conic and Polar Stereographic projections.
protected static phi2z ( double eccent, double ts, long &flag ) : double
eccent double
ts double
flag long
Результат double

qsfnz() защищенный статический Метод

Function to compute constant small q which is the radius of a parallel of latitude, phi, divided by the semimajor axis.
protected static qsfnz ( double eccent, double sinphi, double cosphi ) : double
eccent double
sinphi double
cosphi double
Результат double

sign() защищенный статический Метод

Function to return the sign of an argument
protected static sign ( double x ) : double
x double
Результат double

sincos() защищенный статический Метод

Function to calculate the sine and cosine in one call. Some computer systems have implemented this function, resulting in a faster implementation than calling each function separately. It is provided here for those computer systems which don`t implement this function
protected static sincos ( double val, double &sin_val, double &cos_val ) : void
val double
sin_val double
cos_val double
Результат void

tsfnz() защищенный статический Метод

Function to compute the constant small t for use in the forward computations in the Lambert Conformal Conic and the Polar Stereographic projections.
protected static tsfnz ( double eccent, double phi, double sinphi ) : double
eccent double
phi double
sinphi double
Результат double

Описание свойств

_Parameters защищенное свойство

protected List _Parameters
Результат List

_e защищенное свойство

protected double _e
Результат double

_es защищенное свойство

protected double _es
Результат double

_inverse защищенное свойство

protected MathTransform,SharpMap.CoordinateSystems.Transformations _inverse
Результат SharpMap.CoordinateSystems.Transformations.MathTransform

_isInverse защищенное свойство

protected bool _isInverse
Результат bool

_isSpherical защищенное свойство

protected bool _isSpherical
Результат bool

_semiMajor защищенное свойство

protected double _semiMajor
Результат double

_semiMinor защищенное свойство

protected double _semiMinor
Результат double