ArcGIS Pro二次开发获得数据库中所有表
// For sde DatabaseConnectionFile connector = new DatabaseConnectionFile(new Uri(sdePath)); // For gdb FileGeodatabaseConnectionPath connector = new FileGeodatabaseConnectionPath(new Uri(gdbPath)); // coomon part using (Geodatabase gdb = new Geodatabase(connector)) { var defs = gdb.GetDefinitions<TableDefinition>(); foreach (var d in defs) { string dsName = d.GetName(); // your code here d.Dispose(); } }
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】AI 的力量,开发者的翅膀:欢迎使用 AI 原生开发工具 TRAE
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战