Select to view content in your preferred language

possible to create TPK files using IOS api?

3789
6
Jump to solution
04-10-2012 12:57 PM
JamieChristensen
Deactivated User
Hello,

I am new to GIS and this framework so please help me out.

Is it possible to create a tpk file from ipad/iOS device using the SDK?
If this is possible then will I be able to use this tpk file (save locally) from my app instead of having to use the itunes share method?

Thanks a bunch
0 Kudos
1 Solution

Accepted Solutions
JamieChristensen
Deactivated User
Thanks for the reply PMnrjarecha.  I looked at that sample but I am trying to allow selected section of the map to be cached as tpk file to local hardware aka (iPad).  
Can this be done with IOS SDK?

Thanks again

*Update
I realized that this is not possible with IOS SDK.  I can only create tpk package using ArcMap.  that sucks.

View solution in original post

0 Kudos
6 Replies
NimeshJarecha
Esri Regular Contributor
Please go through documentation of AGSLocalTiledLayer for of tpk support in the ArcGIS Runtime SDK for iOS.

Also, look at the sample.

Regards,
Nimesh
0 Kudos
JamieChristensen
Deactivated User
Thanks for the reply PMnrjarecha.  I looked at that sample but I am trying to allow selected section of the map to be cached as tpk file to local hardware aka (iPad).  
Can this be done with IOS SDK?

Thanks again

*Update
I realized that this is not possible with IOS SDK.  I can only create tpk package using ArcMap.  that sucks.
0 Kudos
KevinCriss
Emerging Contributor
If you have a GIS specialist and a ArcGIS Server available to you I would suggest the following.

1.  Have specialist develop a python\model
     A.  Input:  Envelope
     B.  Output:  TPK package to ArcGISJobs directory
2.  Deploy said python\model to ArcGIS Server as an asynchronous geoprocessing service.
3.  xCode viewController Code
     A.  Add geoprocessing service
     B.  Get map extent as envelope and pass to service
     C.  Build listen method for response from server.
     D.  Extract URL from response.
     E.  Check connectivity
          i.  If WIFI or physical connection then download packaged
          ii.  Any other type prompt user to establish WIFI\physical connection
               a.  Since the TPK is generated asynchronously the output file will be available on the server for a period of time.
               b.  Please check with GIS specialist or enterprise manager for the configuration of the ArcGISJobs. 
               c.  This configuration will impact availability of generated TPK.
0 Kudos
ChrisJenkins1
Emerging Contributor
If I were you I'd take a look at TileMill and the mbtiles format instead of TPK. TileMill is free and much easier to use to create tiles, and its not hard to write your own tiled layer and tile operation to get the tiles from the mbtiles file.
0 Kudos
MikeQuetel
Deactivated User
If I were you I'd take a look at TileMill and the mbtiles format instead of TPK. TileMill is free and much easier to use to create tiles, and its not hard to write your own tiled layer and tile operation to get the tiles from the mbtiles file.


Would you be willing to share code you have that allows for use of MBTiles in the iOS SDK?

Thanks!

MQ
0 Kudos
TomMacWright
New Contributor
Sure, the MapBox Mobile SDK is a fully open-source implementation of the spec for offline and online tiles. There's also a long list of alternative implementations on a variety of platforms.
0 Kudos