示例#1
0
 public void TransformBLToXY(double latitude, double longitude, out double x, out double y)
 {
     GeoBLPoint geoBLPoint = new GeoBLPoint(longitude, latitude);
     GeoXYPoint point2 = this.m_GeoProvider.TransformBLToXY(geoBLPoint);
     x = 0.0;
     y = 0.0;
     if (point2 != null)
     {
         x = point2.X;
         y = point2.Y;
     }
 }
示例#2
0
 public void TransformXYToBL(out GeoBLPoint latPoint, GeoXYPoint planePoint)
 {
     if (string.IsNullOrEmpty(this.m_CurrentProjection.ProjectionName) || string.IsNullOrEmpty(this.m_CurrentProjection.SpheroidName))
     {
         latPoint = null;
     }
     else
     {
         double num;
         double num2;
         this.m_CurrentProjection.TransformXYToBL(out num, out num2, planePoint.X, planePoint.Y);
         latPoint = new GeoBLPoint(num, num2);
     }
 }
示例#3
0
 public GeoXYPoint TransformBLToXY(GeoBLPoint geoBLPoint)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public double DistanceOf2Pts(GeoBLPoint latPt1, GeoBLPoint latPt2)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public Point LatToScreen(GeoBLPoint blPt)
 {
     GeoXYPoint point;
     this.m_CoordinateTransform.TransformBLToXY(out point, blPt);
     return this.PlaneToScreen(point);
 }
示例#6
0
 public GeoXYPoint LatToPlanet(GeoBLPoint blPt)
 {
     GeoXYPoint point;
     this.m_CoordinateTransform.TransformBLToXY(out point, blPt);
     return point;
 }
示例#7
0
 public void InitWithBL(Bitmap bitmap, GeoBLPoint lowerLeftPoint, GeoBLPoint upperRightPoint, int transparentValue, GeoTransformation geoTransformation)
 {
     this.InitImage(bitmap, transparentValue);
     this.m_LeftOfBoundBL = lowerLeftPoint.L;
     this.m_RightOfBoundBL = upperRightPoint.L;
     this.m_TopOfBoundBL = upperRightPoint.B;
     this.m_BottomOfBoundBL = lowerLeftPoint.B;
     this.m_TransparentValue = transparentValue;
     this.m_GeoTransformation = geoTransformation;
     this.pictureBox1.Image = this.m_Bitmap;
     this.trackBarTransaprent.Value = Convert.ToInt32((double) ((((double) (0xff - transparentValue)) / 255.0) * 100.0));
     this.lbPercent.Text = string.Format("{0}%", this.trackBarTransaprent.Value);
     this.tbEastBL.Text = this.m_RightOfBoundBL.ToString("f5");
     this.tbWestBL.Text = this.m_LeftOfBoundBL.ToString("f5");
     this.tbSouthBL.Text = this.m_BottomOfBoundBL.ToString("f5");
     this.tbNorthBL.Text = this.m_TopOfBoundBL.ToString("f5");
     this.InitXYWithBL();
 }
示例#8
0
 public GeoXYPoint LatToPlane(GeoBLPoint latPoint)
 {
     GeoXYPoint point;
     this.TransformBLToXY(out point, latPoint);
     return point;
 }