Skip to content

Latest commit

 

History

History
224 lines (192 loc) · 8.57 KB

File metadata and controls

224 lines (192 loc) · 8.57 KB

Atc.Math.GeoSpatial


DistanceMeasurementType

DistanceMeasurementType

public enum DistanceMeasurementType
Value Name Description Summary
0 Meters Meters The meters.
1 Feet Feet The feet.
2 Kilometers Kilometers The kilometers.
3 StatuteMiles Statute Miles The statute miles.
4 NauticalMiles Nautical Miles The nautical miles.

GeoSpatialHelper

Provides utility methods for geospatial calculations including distance measurements between geographic coordinates.

public static class GeoSpatialHelper

Static Methods

Bearing

double Bearing(CartesianCoordinate coordinate1, CartesianCoordinate coordinate2)

Summary: Calculates the initial bearing (forward azimuth) from one geographic coordinate to another. The bearing is the angle measured clockwise from true north (0°) to the direction of travel.

Parameters:
     coordinate1  -  The starting coordinate.
     coordinate2  -  The destination coordinate.

Returns: The initial bearing in degrees (0–360), where 0° is north, 90° east, 180° south, 270° west.

Bearing

double Bearing(double longitude1, double latitude1, double longitude2, double latitude2)

Summary: Calculates the initial bearing (forward azimuth) from one geographic coordinate to another. The bearing is the angle measured clockwise from true north (0°) to the direction of travel.

Parameters:
     coordinate1  -  The starting coordinate.
     coordinate2  -  The destination coordinate.

Returns: The initial bearing in degrees (0–360), where 0° is north, 90° east, 180° south, 270° west.

Distance

double Distance(CartesianCoordinate coordinate1, CartesianCoordinate coordinate2, DistanceMeasurementType measurement)

Summary: Calculates the great-circle distance between two geographic coordinates.

Parameters:
     coordinate1  -  The first coordinate.
     coordinate2  -  The second coordinate.
     measurement  -  The unit of measurement for the result.

Returns: The distance between the two coordinates in the specified measurement unit.

Distance

double Distance(double longitude1, double latitude1, double longitude2, double latitude2, DistanceMeasurementType measurement = Kilometers, double earthRadiusKm = 6371)

Summary: Calculates the great-circle distance between two geographic coordinates.

Parameters:
     coordinate1  -  The first coordinate.
     coordinate2  -  The second coordinate.
     measurement  -  The unit of measurement for the result.

Returns: The distance between the two coordinates in the specified measurement unit.


ReferenceEllipsoidType

ReferenceEllipsoidType

public enum ReferenceEllipsoidType
Value Name Description Summary
0 Airy Airy The airy.
1 AustralianNational Australian National The australian national.
2 Bessel1841 Bessel1841 The bessel 1841.
3 Bessel1841Nambia Bessel1841 Nambia The bessel 1841 nambia.
4 Clarke1866 Clarke1866 The clarke 1866.
5 Clarke1880 Clarke1880 The clarke 1880.
6 Everest Everest The everest.
7 Fischer1960Mercury Fischer1960 Mercury The fischer1960 mercury.
8 Fischer1968 Fischer1968 The fischer1968.
9 Grs1967 Grs1967 The GRS 1967 (Geodetic Reference System).
10 Grs1980 Grs1980 The GRS 1980 (Geodetic Reference System).
11 Helmert1906 Helmert1906 The helmert 1906.
12 Hough Hough The hough.
13 International International The international.
14 Krassovsky Krassovsky The krassovsky.
15 ModifiedAiry Modified Airy The modified airy.
16 ModifiedEverest Modified Everest The modified everest.
17 ModifiedFischer1960 Modified Fischer1960 The modified fischer 1960.
18 SouthAmerican1969 South American1969 The south american 1969.
19 Ed50 Ed50 The ED50 (European Datum 1950) - International Ellipsoid.
20 Wgs60 Wgs60 The WGS 60 (World Geodetic System).
21 Wgs66 Wgs66 The WGS 66 (World Geodetic System).
22 Wgs72 Wgs72 The WGS 72 (World Geodetic System).
23 Wgs84 Wgs84 The WGS 84 (World Geodetic System).
24 Euref89 Euref89 The EUREF89 (European Terrestrial Reference System) - Max deviation from WGS 84 is 40 cm/km see http://ocq.dk/euref89 (in danish).
25 Etrs89 Etrs89 The ETRS89 (European Terrestrial Reference System) - Same as EUREF89.

UniversalTransverseMercatorConverter

UniversalTransverseMercatorConverter

public class UniversalTransverseMercatorConverter

Methods

ToUtm

UniversalTransverseMercatorResult ToUtm(CartesianCoordinate coordinate)

Summary: To UTM.

Parameters:
     coordinate  -  The coordinate.

ToUtm

UniversalTransverseMercatorResult ToUtm(double latitude, double longitude)

Summary: To UTM.

Parameters:
     coordinate  -  The coordinate.

ToWgs84

CartesianCoordinate ToWgs84(UniversalTransverseMercatorResult utmResult, int maxDecimalPrecision = 8)

Summary: Converts a Atc.Math.GeoSpatial.UniversalTransverseMercatorResult back to a WGS84 geographic coordinate. This is a convenience overload that unpacks the fields from the result returned by Atc.Math.GeoSpatial.UniversalTransverseMercatorConverter.ToUtm(Atc.Structs.CartesianCoordinate) or Atc.Math.GeoSpatial.UniversalTransverseMercatorConverter.ToUtm(System.Double,System.Double).

Parameters:
     utmResult  -  The UTM result to convert.
     maxDecimalPrecision  -  The maximum number of decimal places in the returned latitude/longitude values.

Returns: A Atc.Structs.CartesianCoordinate containing the WGS84 latitude and longitude.

ToWgs84

CartesianCoordinate ToWgs84(int utmZoneNumber, string utmZoneLetter, double utmEasting, double utmNorthing, int maxDecimalPrecision = 8)

Summary: Converts a Atc.Math.GeoSpatial.UniversalTransverseMercatorResult back to a WGS84 geographic coordinate. This is a convenience overload that unpacks the fields from the result returned by Atc.Math.GeoSpatial.UniversalTransverseMercatorConverter.ToUtm(Atc.Structs.CartesianCoordinate) or Atc.Math.GeoSpatial.UniversalTransverseMercatorConverter.ToUtm(System.Double,System.Double).

Parameters:
     utmResult  -  The UTM result to convert.
     maxDecimalPrecision  -  The maximum number of decimal places in the returned latitude/longitude values.

Returns: A Atc.Structs.CartesianCoordinate containing the WGS84 latitude and longitude.


UniversalTransverseMercatorResult

UniversalTransverseMercatorResult

public class UniversalTransverseMercatorResult

Properties

FormattedUtm

FormattedUtm

Summary: Gets the formatted UTM.

UtmEasting

UtmEasting

Summary: Gets the utm easting.

UtmNorthing

UtmNorthing

Summary: Gets the utm northing.

Zone

Zone

Summary: Gets the zone.

ZoneLetter

ZoneLetter

Summary: Gets the zone letter.

ZoneNumber

ZoneNumber

Summary: Gets the zone number.

Methods

ToString

string ToString()

Generated by MarkdownCodeDoc version 1.2