/// <summary> /// 构造函数 /// </summary> /// <param name="elp">椭球类型</param> /// <param name="a">椭球参数a(如果为自定义的椭球)</param> /// <param name="b">椭球参数b(如果为自定义的椭球)</param> public CoordinateTrans(Ellipse elp,double a=0,double b=0) { ep = new Ellipsoid(); switch (elp) { case Ellipse.International1975: ep.International_ellipsoid1975(); break; case Ellipse.WGS84: ep.WGS84_ellipsoid(); break; case Ellipse.CGCS2000: ep.CGCS2000_ellipsoid(); break; case Ellipse.Other: ep = new Ellipsoid(a, b); break; } }
/// <summary> /// 构造函数 /// </summary> /// <param name="elp">常用椭球类型</param> /// <param name="a">椭球参数a(如果为自定义的椭球)</param> /// <param name="b">椭球参数b(如果为自定义的椭球)</param> public GaussProjection(Ellipse elp, double a = 0, double b = 0) { ep = new Ellipsoid(); switch (elp) { case Ellipse.International1975: ep.International_ellipsoid1975(); break; case Ellipse.WGS84: ep.WGS84_ellipsoid(); break; case Ellipse.CGCS2000: ep.CGCS2000_ellipsoid(); break; case Ellipse.Other: ep = new Ellipsoid(a, b); break; } }