Example #1
0
 public TestScene()
 {
     watch    = new Stopwatch();
     Camera   = new Camera();
     models   = new List <GeoModel>();
     vis_tree = new GeoScene();
     //
     UpdateSettings();
 }
Example #2
0
        private GSOPoint2d LatLon2Coord(GeoScene.Data.GSOPoint2d pt2d)
        {
            int id = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=-50000 +y_0=-4210000 +ellps=krass +units=m +no_defs");
               //  GeoScene.Data.GSOProjectManager.SetCurProject(id);
               // double x = Convert.ToDouble(txtLong.Text);
               // double y = Convert.ToDouble(txtLat.Text);
               // GeoScene.Data.GSOPoint2d pt2d = new GeoScene.Data.GSOPoint2d(x, y);

            GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, id);
            return result;
        }
Example #3
0
        private ArrayList modeltypes = new ArrayList(); // 井的型号

        #endregion Fields

        #region Constructors

        public FrmAddWell(GeoScene.Globe.GSOGlobeControl _globeControl1,GSODataSource _ds)
        {
            globeControl1 = _globeControl1;
            ds = _ds;
            InitializeComponent();
        }
Example #4
0
 public FrmBatchUpadateColor(GeoScene.Globe.GSOGlobeControl globeControl)
 {
     InitializeComponent();
     mGlobeControl = globeControl;
 }
Example #5
0
        public static GSOFeatures Table2Features(DataTable table, string currentQueryLayer,GeoScene.Globe.GSOGlobeControl globeControl1)
        {
            GSOFeatures features = new GSOFeatures();
            for (int i = 0; i < table.Rows.Count; i++)
            {
                DataRow row = table.Rows[i];

                string featureName = row["编号"].ToString();
                featureName = featureName.Trim();
                GSOLayer layer = globeControl1.Globe.Layers.GetLayerByCaption(currentQueryLayer);
                GSOFeatures tempfeatures = layer.GetFeatureByName(featureName, false);
                if (tempfeatures.Length > 0)
                {
                    features.Add(tempfeatures[0]);
                }
            }
            return features;
        }
Example #6
0
 public FrmAddValve(GeoScene.Globe.GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
Example #7
0
        private ArrayList modeltypes = new ArrayList(); // 井的型号

        #endregion Fields

        #region Constructors

        public FrmBatchCreateModel(GeoScene.Globe.GSOGlobeControl _globeControl1)
        {
            InitializeComponent();

            globeControl1 = _globeControl1;
        }
 public FrmBatchUpadateFontOfMarkers(GeoScene.Globe.GSOGlobeControl globeControl)
 {
     InitializeComponent();
     mGlobeControl = globeControl;
 }
Example #9
0
 public FrmAddYuBiZiShp(GeoScene.Globe.GSOGlobeControl _globeControl1)
 {
     globeControl1 = _globeControl1;
     InitializeComponent();
 }
 private GSOPoint2d LatLon2Coord(GeoScene.Data.GSOPoint2d pt2d)
 {
     int id = GeoScene.Data.GSOProjectManager.AddProject("+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=-50000 +y_0=-4210000 +ellps=krass +units=m +no_defs");
     GeoScene.Data.GSOPoint2d result = GeoScene.Data.GSOProjectManager.Forward(pt2d, id);
     return result;
 }