C# Класс MapAround.Geography.GnomonicProjection

Gnomonic projection. This class, unlike MapAround.CoordinateSystems.Transformations.Gnomonic, is designed for internal use.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetCenter ( IEnumerable points, double &centerLat, double &centerLon ) : void

Calculates the longitude and latitude of the projection center for an array of points on the ellipsoid.

GetCenter ( double latLonSequence, double &centerLat, double &centerLon ) : void

Calculates the longitude and latitude of the center of projection to the passed values ​​of latitudes and longitudes.

GnomonicProjection ( double centerLongitude, double centerLatitude ) : System

Instantiates GnommonicProjection.

Project ( double latitude, double longitude, double &x, double &y ) : void

Calculates the coordinates of the point in the projection plane.

Unproject ( double x, double y, double &lat, double &lon ) : void

Calculates the latitude and longitude points.

Приватные методы

Метод Описание
getMinEntryIndex ( double values ) : int

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

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

Calculates the longitude and latitude of the projection center for an array of points on the ellipsoid.
public static GetCenter ( IEnumerable points, double &centerLat, double &centerLon ) : void
points IEnumerable An array of points on the ellipsoid
centerLat double The output value of latitude
centerLon double The output value of the longitude
Результат void

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

Calculates the longitude and latitude of the center of projection to the passed values ​​of latitudes and longitudes.
public static GetCenter ( double latLonSequence, double &centerLat, double &centerLon ) : void
latLonSequence double Array of real numbers that contains the latitude and longitude /// (to be completed in the form of a sequence of pairs: "latitude", "longitude")
centerLat double The output value of latitude
centerLon double The output value of the longitude
Результат void

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

Instantiates GnommonicProjection.
public GnomonicProjection ( double centerLongitude, double centerLatitude ) : System
centerLongitude double Longitude of projection center
centerLatitude double Latitude of projection center
Результат System

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

Calculates the coordinates of the point in the projection plane.
public Project ( double latitude, double longitude, double &x, double &y ) : void
latitude double Latitude of the
longitude double Longitude points
x double X coordinate in the plane of projection
y double Y-coordinate in the plane of projection
Результат void

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

Calculates the latitude and longitude points.
public Unproject ( double x, double y, double &lat, double &lon ) : void
x double X coordinate in the plane of projection
y double Y-coordinate in the plane of projection
lat double Latitude of the
lon double Longitude points
Результат void