コード例 #1
0
 public Point LngLatToMercator(LngLat lngLat)
 {
     double[] array = new double[0];
     for (int i = 0; i < ProjectionUtil.LLBAND.Length; i++)
     {
         if (lngLat.Lat >= (double)ProjectionUtil.LLBAND[i])
         {
             array = ProjectionUtil.LL2MC[i];
             break;
         }
     }
     if (array.Length == 0)
     {
         for (int j = 0; j < ProjectionUtil.LLBAND.Length; j++)
         {
             if (lngLat.Lat <= (double)(-(double)ProjectionUtil.LLBAND[j]))
             {
                 array = ProjectionUtil.LL2MC[j];
                 break;
             }
         }
     }
     return(this.convert(lngLat, array, 0));
 }
コード例 #2
0
 public abstract Pixel LngLatToPixel(LngLat lngLat, double zoom);
コード例 #3
0
ファイル: LngLat.cs プロジェクト: ouriping/TileCutterDonNet
 public bool Equals(LngLat other)
 {
     return(other != null && other.Lng == this.Lng && other.Lat == this.Lat);
 }