Closed XiaoZhong233 closed 6 years ago
Hi @XiaoZhong233 ArcGIS Runtime doesn't support direct reading of personal geodatabase (.mdb) or file geodatabase (.gdb). The geodatabase format for local data is a SQLite format database referred to as a "runtime geodatabase". You can create this kind of database using ArcGIS Desktop, as described in the ArcMap help documentation. There are other ways of working with local content too: such as taking a feature service offline, opening shapefiles, geopackages, etc. These options are described in some detail in the following ArcGIS Runtime SDK for .NET topics and samples:
Another option is to use Local Server (for the ArcGIS Runtime SDK, WPF only). Local Server gives you some additional options for consuming local data in the form of packages created from ArcMap or ArcGIS Pro. See the Local Server topic for more information.
I hope that helps, please let me know if you have further questions! Thad (ttilton@esri.com)
hello , i want to open local mdb file in my app. i try to imitate the sample code. but failed. the error message report that there is no data.but i open it by arcgis desktop .it works here is my code
Geodatabase mobileGeodatabase = await Geodatabase.OpenAsync(file); GeodatabaseFeatureTable featureTable = mobileGeodatabase.GeodatabaseFeatureTable("terlk_p"); await featureTable.LoadAsync(); FeatureLayer trailheadsFeatureLayer = new FeatureLayer(featureTable); MyMapView.Map.OperationalLayers.Add(trailheadsFeatureLayer); await MyMapView.SetViewpointGeometryAsync(trailheadsFeatureLayer.FullExtent);