+ Reply to Thread
Results 1 to 7 of 7

Thread: possible to create TPK files using IOS api?

  1. #1
    Jamie Christensen
    Join Date
    Apr 2012
    Posts
    4
    Points
    0
    Answers Provided
    1


    0

    Default possible to create TPK files using IOS api?

    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

  2. #2
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0

    Default Re: possible to create TPK files using IOS api?

    Please go through documentation of AGSLocalTiledLayer for of tpk support in the ArcGIS Runtime SDK for iOS.

    Also, look at the sample.

    Regards,
    Nimesh

  3. #3
    Jamie Christensen
    Join Date
    Apr 2012
    Posts
    4
    Points
    0
    Answers Provided
    1


    0
    This post is marked as the answer

    Default Re: possible to create TPK files using IOS api?

    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.
    Last edited by jamiech; 04-18-2012 at 05:41 AM.

  4. #4
    Kevin Criss
    Join Date
    Apr 2012
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: possible to create TPK files using IOS api?

    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.

  5. #5
    Chris Jenkins
    Join Date
    Jan 2012
    Posts
    13
    Points
    0
    Answers Provided
    0


    0

    Default Re: possible to create TPK files using IOS api?

    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.

  6. #6
    Mike Quetel
    Join Date
    May 2010
    Posts
    7
    Points
    0
    Answers Provided
    0


    0

    Default Re: possible to create TPK files using IOS api?

    Quote Originally Posted by shortcipher View Post
    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

  7. #7

    Join Date
    Aug 2012
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Re: possible to create TPK files using IOS api?

    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.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts