ArcGIS Runtime SDK for IOS访问离线.geodatabase地图包示例代码

在ArcGIS Runtime SDK for IOS中如何访问离线.geodatabase地图包?
已邀请:

马克玲

赞同来自:

【解决办法】:
访问离线geodatabase 地图包的示例代码:
NSString *thePathString = [[NSBundle mainBundle] resourcePath];

NSString *path = [thePathString stringByAppendingPathComponent:@testdata.geodatabase];

NSLog(@%@,thePathString);

AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:path error:nil];

self.localFeatureTable = [[gdb featureTables] objectAtIndex:0];

self.localFeatureTableLayer = [[AGSFeatureTableLayer alloc] initWithFeatureTable:self.localFeatureTable];

self.localFeatureTableLayer.delegate = self;

[self.mapView addMapLayer:self.localFeatureTableLayer withName:@offline Feature Layer];

要回复问题请先登录注册