예제 #1
0
파일: UTM.cs 프로젝트: MohammadUT/IRI.Japey
        //public override Point FromGeodetic(Point point)
        //{
        //    return MapProjects.GeodeticToUTM(point, this._ellipsoid);
        //}

        //public override Point ToGeodetic(Point point)
        //{
        //    return MapProjects.UTMToGeodetic(point, this._ellipsoid, this._centralMeridian);
        //}

        public override IPoint FromGeodetic(IPoint point)
        {
            var tempLongitude = point.X - _centralMeridian;

            var tempLatitude = point.Y - _latitudeOfOrigin;

            var result = MapProjects.GeodeticToTransverseMercator(new Point(tempLongitude, tempLatitude), this._ellipsoid);

            return(new Point(result.X * _scaleFactor + _falseEasting, result.Y * _scaleFactor + _falseNorthing));
        }