使用产品:supermap-imobile-912(2019)-1158-rtm-ios-chs_(精简版)
问题详细描述:调用 MapCacheService下载缓存时 出现异常
代码
-(Dataset*)getDataset:(DatasourceConnectionInfo*)connectionInfo {
Workspace *workspace = [[Workspace alloc]init];
Datasource *datasource = [workspace.datasources open:connectionInfo];
if (datasource) {
Datasets *datasets = [datasource datasets];
if (datasets.count) {
Dataset *dataset = [datasets get:0];
return dataset;
}
}
return nil;
}
-(void)startDown {
DatasourceConnectionInfo *info = [[DatasourceConnectionInfo alloc]init];
info.engineType = ET_IMAGEPLUGINS;
info.server = self.imageSciFile;
info.alias = self.imageAlias;
Dataset * dataset = [self getDataset:info];
// MapCacheService *service = [[MapCacheService alloc]initWithDataset:dataset];
MapCacheService *service = [((DatasetImage*)dataset) getMapCacheService];
service.delegate = self;
[service startDownload:_maxScale minScal:_minScale rect:_rect2D];
........
}
开始下载时出现异常
[service startDownload:_maxScale minScal:_minScale rect:_rect2D];
UGC::UGMapCacheFile::GetBounds()
地图范围:
<sml:Bounds>
<sml:Left>114.229839088925</sml:Left>
<sml:Top>38.904819444444399</sml:Top>
<sml:Right>123.400530149205</sml:Right>
<sml:Bottom>33.938930555555601</sml:Bottom>
</sml:Bounds>
比例尺
<sml:Scale>
<sml:Value>0.00000021634092214020</sml:Value>
<sml:Caption>7</sml:Caption>
</sml:Scale>
<sml:Scale>
<sml:Value>0.00000043268187423457</sml:Value>
<sml:Caption>8</sml:Caption>
</sml:Scale>
。。。