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; */ }
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; */ }
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; }
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); }