public static void Example()
        {
            EllipsoidModel model1 = new WGS84Ellipsoid();

            Console.WriteLine(model1.ToString());
            // var model2=new GPSEllipsoid();
            /// Console.WriteLine(model2.ToString());
        }
Beispiel #2
0
        public Position(Triple ABC, CoordinateSystem s)
        {
            double a   = ABC[0];
            double b   = ABC[1];
            double c   = ABC[2];
            var    ell = new WGS84Ellipsoid();

            Initialize(a, b, c, s, ell);
        }
Beispiel #3
0
        public static void Example()
        {
            EllipsoidModel wgs84 = new WGS84Ellipsoid();
            var            buin  = new Position(-2953118.4465, 5078909.8076, 2474538.1820,
                                                CoordinateSystem.Cartesian, wgs84);

            Console.WriteLine(buin.ToString(CoordinateSystem.Cartesian));
            Console.WriteLine(buin.ToString(CoordinateSystem.Geodetic));
            Console.WriteLine(buin.ToString(CoordinateSystem.Geocentric));
            Console.WriteLine(buin.ToString(CoordinateSystem.Spherical));

            Console.WriteLine("CurvMeridan:{0}", buin.CurvMeridian());
            Console.WriteLine("CurvPrimeVertical:{0}", buin.CurvPrimeVertical());
        }
Beispiel #4
0
        public Position(double a, double b, double c, CoordinateSystem s)
        {
            var ell = new WGS84Ellipsoid();

            Initialize(a, b, c, s, ell);
        }
Beispiel #5
0
 // ----------- Part  3: member functions: constructors --------------------
 //
 // Default constructor.
 public Position()
 {
     Ellipsoid = new WGS84Ellipsoid();
     Initialize(0.0, 0.0, 0.0, CoordinateSystem.Unknown, Ellipsoid);
 }