AnsweredAssumed Answered

SpatialReference is changed when exporting tilecache with parameters

Question asked by lucianotoools on Apr 7, 2016
Latest reply on Apr 7, 2016 by Yue_Wu-esristaff

Hi to everyone, and thanks in advance for the help.


I have an strange problem using v.10.2.5 of ArcGis-RunTIme-SDK-iOS. After reading the guides i've been able to export tile cache of one agstiledlayer using the following code:


//temp is an NSMutableArray containing NSNumbers... something like {@"1",@"2",@"3"...}

//self.geom is an instance of AGSEnvelope with WKID = 25830 and xmin,ymin,xmax and ymax initialized to the values of the envelope i want to cache.


params = [[AGSExportTileCacheParams alloc] initWithLevelsOfDetail:temp areaOfInterest:self.geom];

[task exportTileCacheWithParameters:params downloadFolderPath:exportedPath useExisting:NO status:^(AGSResumableTaskJobStatus status, NSDictionary *userInfo) {


} completion:^(AGSLocalTiledLayer *localTiledLayer, NSError *error) {

     //localTiledLayer spatialReference WKID is 102100



The problem i have is that the localTiledLayer downloaded has a different spatialreference (102100) than the parameters i used to specify the download (25830). Why is this happening? Am i doing something wrong or is something not related with the client (iOS) side?


Thanks for your help,