Esempio n. 1
0
        public PointLatLngAlt ToLLA()
        {
            GeoUtility.GeoSystem.UTM utm = new GeoUtility.GeoSystem.UTM(Math.Abs(zone), x, y, zone < 0 ? GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.South : GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.North);

            PointLatLngAlt ans = ((GeoUtility.GeoSystem.Geographic)utm);
            if (this.Tag != null)
                ans.Tag = this.Tag.ToString();

            return ans;

            /*
            IProjectedCoordinateSystem utm = ProjectedCoordinateSystem.WGS84_UTM(Math.Abs(zone), zone < 0 ? false : true);

            ICoordinateTransformation trans = ctfac.CreateFromCoordinateSystems(wgs84, utm);

            // get leader utm coords
            double[] pll = trans.MathTransform.Inverse().Transform(this);

            PointLatLngAlt ans = new PointLatLngAlt(pll[1], pll[0]);
            if (this.Tag != null)
                ans.Tag = this.Tag.ToString();

            return ans;
             */
        }
Esempio n. 2
0
        public PointLatLngAlt ToLLA()
        {
            GeoUtility.GeoSystem.UTM utm = new GeoUtility.GeoSystem.UTM(Math.Abs(zone), x, y, zone < 0 ? GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.South : GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.North);

            PointLatLngAlt ans = ((GeoUtility.GeoSystem.Geographic)utm);

            if (this.Tag != null)
            {
                ans.Tag = this.Tag.ToString();
            }

            return(ans);

            /*
             * IProjectedCoordinateSystem utm = ProjectedCoordinateSystem.WGS84_UTM(Math.Abs(zone), zone < 0 ? false : true);
             *
             * ICoordinateTransformation trans = ctfac.CreateFromCoordinateSystems(wgs84, utm);
             *
             * // get leader utm coords
             * double[] pll = trans.MathTransform.Inverse().Transform(this);
             *
             * PointLatLngAlt ans = new PointLatLngAlt(pll[1], pll[0]);
             * if (this.Tag != null)
             *  ans.Tag = this.Tag.ToString();
             *
             * return ans;
             */
        }
Esempio n. 3
0
        public PointLatLngAlt ToLLA2()
        {
            GeoUtility.GeoSystem.UTM utm = new GeoUtility.GeoSystem.UTM(Math.Abs(zone), x, y, zone < 0 ? GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.South : GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.North);

            PointLatLngAlt ans = ((GeoUtility.GeoSystem.Geographic)utm);
            if (this.Tag != null)
                ans.Tag = this.Tag.ToString();

            return ans;
        }
Esempio n. 4
0
        public PointLatLngAlt ToLLA2()
        {
            GeoUtility.GeoSystem.UTM utm = new GeoUtility.GeoSystem.UTM(Math.Abs(zone), x, y, zone < 0 ? GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.South : GeoUtility.GeoSystem.Base.Geocentric.Hemisphere.North);

            PointLatLngAlt ans = ((GeoUtility.GeoSystem.Geographic)utm);

            if (this.Tag != null)
            {
                ans.Tag = this.Tag.ToString();
            }

            return(ans);
        }