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; } } }
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(); }