POST
|
Hi everybody, we would like to include a local tile cache (tpk-file) into an iOS Runtime Demo App. We tried to export such a tpk-file within ArcMap, using data from an ArcGIS.com TiledBaseMaps-Server (http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Topo_Map/MapServer), as described here: http://www.arcgis.com/home/item.html?id=eaee8760ed754019a964a6d785613a50 . We only try to download a very small area (small city), so all use and access constraints are met. Within ArcMap (we tried version 10.3, 10.2.2, 10.2.1) we logged in with the credentials of an ArcGIS developer account and (during another attempt) with an organizational subscription account. Then we tried "File" -> "Share As" -> "Tile Package". After "Analyzing" we get the error: "00005: Layer type is not supported". In the help file it states that "Tiled map service layers" are supported as "Basemap layers" and that is exactly what we did. Did anybody else try to download some tiles from the ArcGIS.com TiledBaseMaps-Server for offline use recently and did it work? Cheers, Beate
... View more
03-09-2015
09:58 AM
|
0
|
26
|
12124
|
POST
|
Dear Suganya and Yue Wu, (1) same error (2) the geodatabase is not a link, it is included. Just to be clear: In the simulator all these procedures work fine. But on the device the geodatabase included in the bundle cannot be loaded. Since we found a workaround (copying the geodatabase to the Library-Directory), we are not further looking for another solution. Thanks and cheers, Beate
... View more
12-03-2014
12:57 AM
|
0
|
0
|
473
|
POST
|
Hi Yue Wu, you are suggesting to open the GDB from the Documents-Directory. That works fine (as already stated in my original post). We would like to include the GDB into the App-Bundle and load it from there: NSString *thePathStringGDB = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:C_DATABASENAME]; NSFileManager *fileManager = [NSFileManager defaultManager]; if ([fileManager fileExistsAtPath:thePathStringGDB]) { AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc]initWithPath:thePathStringGDB error:&error]; if (error) NSLog(@"Error opening gdb: %@", error.localizedDescription); } This fails with the following error: "automatic extension loading failed" The file exists, but the loading fails. Our workaround is now to copy the GDB from the bundle to the Library-Directory (NSLibraryDirectory) and open it from there. Cheers, Beate
... View more
12-02-2014
01:29 AM
|
0
|
0
|
473
|
POST
|
Hi everybody, we would like to include a local geodatabase into our iOS Application bundle. We created the geodatabase in ArcMap 10.2.2 and are using the Runtime SDK 10.2.4. We load the geodatabase like this: AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc]initWithPath:thePathStringGDB error:&error]; and run into the following error: ***Error Domain=com.esri.arcgis.runtime.error Code=12 "automatic extension loading failed: " UserInfo=0x17027e700 {NSLocalizedDescription=automatic extension loading failed: } Printing description of [0].value: automatic extension loading failed:*** We assume that the Runtime tries to open the geodatabase in writable mode which is not possible within the bundle. It works fine if we copy the geodatabase into the File Sharing folder of our device and load it from there. We also tried to share the Runtime Content in ArcMap with the option "Optimize size for view only". In this case the geodatabase could be opened from the bundle. But a lot of (necessary) attributes from our Feature Classes were removed, so this is not an option. Since we understand that Runtime Content shared from ArcMap should always be created as "read-only" this seems to be a bug? Are there any solutions/workarounds? Cheers, Beate
... View more
11-12-2014
02:01 AM
|
0
|
7
|
3949
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|