<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic iOS SDK and Tiled package in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-sdk-and-tiled-package/m-p/673149#M5974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;today i'm experiencing new AGSLocalTiledLayer with tiled packages created by Desktop 10.1 beta2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I choose a "classic" tiling scheme (ie Bing Maps,...) no problem to consume it with the iOS SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if I use a custom tiling scheme, nothing appear on the map &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is probably the spatialReference. When I unzip tile package, esriinfo/itemInfo.xml describe an extent in degrees and spatial ref name is RGF1993...which is in meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the cache description, all is ok I think (v101/Layers/conf.xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change that to good coordinates it does not have any impact &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, I try to log some layer properties&amp;nbsp; and spatialReference has always an empty wkid and wkt when I load my tpk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a limitation on iOS ? If so can you add it in the documentation ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a bad practice in my code ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
AGSLocalTiledLayer *localTiledLayer = [[AGSLocalTiledLayer alloc] initWithName:@"myTpk.tpk"];

&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",localTiledLayer.spatialReference.wkid);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%@",localTiledLayer.spatialReference.wkt);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add it to the map view
UIView&amp;lt;AGSLayerView&amp;gt;* lyr = [self.mapView addMapLayer:localTiledLayer withName:@"TPK"];

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a bug in the iOS API ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2012 13:55:30 GMT</pubDate>
    <dc:creator>TonyGeorges</dc:creator>
    <dc:date>2012-02-02T13:55:30Z</dc:date>
    <item>
      <title>iOS SDK and Tiled package</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-sdk-and-tiled-package/m-p/673149#M5974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;today i'm experiencing new AGSLocalTiledLayer with tiled packages created by Desktop 10.1 beta2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I choose a "classic" tiling scheme (ie Bing Maps,...) no problem to consume it with the iOS SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, if I use a custom tiling scheme, nothing appear on the map &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is probably the spatialReference. When I unzip tile package, esriinfo/itemInfo.xml describe an extent in degrees and spatial ref name is RGF1993...which is in meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the cache description, all is ok I think (v101/Layers/conf.xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change that to good coordinates it does not have any impact &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that, I try to log some layer properties&amp;nbsp; and spatialReference has always an empty wkid and wkt when I load my tpk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a limitation on iOS ? If so can you add it in the documentation ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a bad practice in my code ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
AGSLocalTiledLayer *localTiledLayer = [[AGSLocalTiledLayer alloc] initWithName:@"myTpk.tpk"];

&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%d",localTiledLayer.spatialReference.wkid);
&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%@",localTiledLayer.spatialReference.wkt);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add it to the map view
UIView&amp;lt;AGSLayerView&amp;gt;* lyr = [self.mapView addMapLayer:localTiledLayer withName:@"TPK"];

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it is a bug in the iOS API ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 13:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-sdk-and-tiled-package/m-p/673149#M5974</guid>
      <dc:creator>TonyGeorges</dc:creator>
      <dc:date>2012-02-02T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: iOS SDK and Tiled package</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-sdk-and-tiled-package/m-p/673150#M5975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If possible, can you please attach a sample TPK to the thread. I'll have a look at it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 07:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-sdk-and-tiled-package/m-p/673150#M5975</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2012-02-20T07:06:42Z</dc:date>
    </item>
  </channel>
</rss>

