Exemple #1
0
        private void CreateWorkSpaces()
        {
            workSpaces = new List <WorkSpace>();
            foreach (var workInfo in workInfos)
            {
                string fileFlag = workInfo.fileName.Split('.')[1];
                switch (fileFlag)
                {
                case "WT":
                    WorkSpaceWT wt = new WorkSpaceWT();
                    wt.LoadData(workInfo);

                    workSpaces.Add(wt);
                    wt.PrintFeatureTable();
                    break;

                case "WL":
                    WorkSpace wl = new WorkSpaceWL();
                    break;

                case "WP":
                    break;

                default:
                    break;
                }
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            //MapGIS test = new MapGIS("250地质图.MPJ");
            WorkSpaceWT test = new WorkSpaceWT();

            test.LoadDataFromFile(@"wt shape\G51symbol.wt");
            test.PrintFeatureTable();
            test.ConvertToShapeFileAndIndexFile();
            //test.ConvertToShapeFile();
            Console.ReadKey();
        }