-
Notifications
You must be signed in to change notification settings - Fork 2
/
Program.cs
40 lines (32 loc) · 1.59 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Copyright © Ákos Halmai, 2021. All rights reserved.
// Licensed under the GNU GPL 3.0. See LICENSE file in the project root for full license information.
//
namespace HyperionGeo
{
class Program
{
static void Main()
{
var eovsource = new EllipsoidalCoordinate(18.142301381, 46.641961386);
var eov = eovsource.TryProject(Projections.EOV, out ProjectedCoordinate eovFinal);
//var wgs = new EllipsoidalCoordinate(18, 46);
////var wgs_ecef = wgs.GetAsECEF(Ellipsoids.WGS84);
//var prj = wgs.TryProject(Projections.WGS84_PseudoMercator, out ProjectedCoordinate wemerc);
//var rew = wemerc.GetAsEllipsidalCoordinate(Projections.WGS84_PseudoMercator);
////var dist = wgs.GetDistance(ref wgs);
//var wgs_ecef = wgs.GetAsECEF(Datums.WGS84);
//wgs_ecef.TryGetAsEllipsoidal(Datums.WGS84, out EllipsoidalCoordinate wgs_lalo);
//var u = GeoidModels.EGM96.GetUndulationValue(wgs);
//var wgs_ecef2 = wgs_lalo.GetAsECEF(Datums.WGS84);
//var di = wgs_ecef2.GetDistance(ref wgs_ecef);
//var gm = GeoidModels.EGM96;
//var x = wgs_ecef.ToString();
//var hd72_ecef = Trans_WGS84_HD72.WGS84ToHD72(wgs_ecef);
//var scss = hd72_ecef.TryGetAsEllipsoidal(Ellipsoids.IUGG67, out EllipsoidalCoordinate iu);
// Lat: 17.999999999999996°; Lon: 46.00000000000001°; Alt: 4.656612873077393E-10 m
//Debug.Print(relli.ToString());
//Debug.Print(iu.ToString());
}
}
}