Esempio n. 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;
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 3
0
 public GeoXYPoint TransformBLToXY(GeoBLPoint geoBLPoint)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public double DistanceOf2Pts(GeoBLPoint latPt1, GeoBLPoint latPt2)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 public Point LatToScreen(GeoBLPoint blPt)
 {
     GeoXYPoint point;
     this.m_CoordinateTransform.TransformBLToXY(out point, blPt);
     return this.PlaneToScreen(point);
 }
Esempio n. 6
0
 public GeoXYPoint LatToPlanet(GeoBLPoint blPt)
 {
     GeoXYPoint point;
     this.m_CoordinateTransform.TransformBLToXY(out point, blPt);
     return point;
 }
Esempio n. 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();
 }
Esempio n. 8
0
 public GeoXYPoint LatToPlane(GeoBLPoint latPoint)
 {
     GeoXYPoint point;
     this.TransformBLToXY(out point, latPoint);
     return point;
 }