示例#1
0
 static TMProjection Get_NZTM_Projection()
 {
     if (!initiallized)
     {
         projection = new TMProjection();
         TMProj(ref projection, NZTM_A, NZTM_RF, MathFunc.Deg2Rad(NZTM_CM), NZTM_SF, MathFunc.Deg2Rad(NZTM_OLAT), NZTM_FE, NZTM_FN, 1.0);
         initiallized = true;
     }
     return(projection);
 }
示例#2
0
        public string FormatBbox(Tuple <double, double, double, double> _bbox)
        {
            var dEast_start  = new double();
            var dNorth_start = new double();
            var dEast_end    = new double();
            var dNorth_end   = new double();

            NZTG2000.geod_nztm(MathFunc.Deg2Rad(_bbox.Item1), MathFunc.Deg2Rad(_bbox.Item2), ref dNorth_start, ref dEast_start);
            NZTG2000.geod_nztm(MathFunc.Deg2Rad(_bbox.Item3), MathFunc.Deg2Rad(_bbox.Item4), ref dNorth_end, ref dEast_end);
            string coord = string.Format("{0}%2C{1}%2C{2}%2C{3}", dEast_start.ToString(), dNorth_start.ToString(), dEast_end.ToString(), dNorth_end.ToString());

            return(coord);
        }