<?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 Re: Files missing from Online-Offline Editing Sample in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763176#M6824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those files are generated by the sample when you go offline.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2012 15:23:54 GMT</pubDate>
    <dc:creator>RickJones</dc:creator>
    <dc:date>2012-05-28T15:23:54Z</dc:date>
    <item>
      <title>Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763175#M6823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a client we are building a sketching app that has to work in online-offline modus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The app needs to be able to start without contacting any feature layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Online-Offline Editing Sample gives us clues how to work with feature layers in offline modus by loading the feature definition from local files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In OnlineOfflineFeatureLayer.m there is &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- (id)initWithURL:(NSURL *)url mode:(AGSFeatureLayerMode)mode online:(BOOL)online{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (self.bOnline)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //restore features from saved feature store...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSDictionary *featureLayerDefinition = [self readFeatureLayerDefinition];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSDictionary *featureSetDictionary = [self readFeatureSet];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; --&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the method readFeatureLayerDefinition is going to load a definition from a local file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-(NSDictionary *)readFeatureLayerDefinition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSError *error = nil;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSDictionary *flDefinition = nil;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *filename = [self featureLayerDefinitionFilename];&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ([[NSFileManager defaultManager] fileExistsAtPath:filename]) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; NSString *flDefinitionString = [NSString stringWithContentsOfFile:filename encoding:NSUnicodeStringEncoding error:&amp;amp;error];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flDefinition = (NSDictionary *)[flDefinitionString AGSJSONValue];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; return flDefinition;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;featureLayerDefinitionFilename reads: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static NSString *kFlDefinitionFileName = @"FeatureLayerDictionary";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This file (next to static NSString *kFeatureSetFileName = @"FeatureSet";) is missing from the sample project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you send/put these files online?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris van Aart&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2CoolMonkeys&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 05:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763175#M6823</guid>
      <dc:creator>Chrisvan_Aart</dc:creator>
      <dc:date>2012-05-28T05:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763176#M6824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Those files are generated by the sample when you go offline.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 15:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763176#M6824</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-05-28T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763177#M6825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The point is that the app needs to coldstart in offline modus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it needs to work without ever contacting the ARCGis server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a sample of the contents of the files? Or can one extract the files from a feature layer of ARCGis server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2012 16:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763177#M6825</guid>
      <dc:creator>Chrisvan_Aart</dc:creator>
      <dc:date>2012-05-28T16:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763178#M6826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had to add .txt to the filenames to upload them.&amp;nbsp; They normally have no extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: Of course, you can modify the onlineoffline class to use whatever path and filename you want.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 12:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763178#M6826</guid>
      <dc:creator>RickJones</dc:creator>
      <dc:date>2012-05-29T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763179#M6827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a solution to this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are also trying to create an ios app that works in offline mode, without contacting server.&amp;nbsp; We need code to read in/access the feature layer data.&amp;nbsp; We have imported .tpk files without problems, but the feature layer is more complicated.&amp;nbsp; Is there a way to bring in map package (.mpk) files, or another feature format, offline?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;K.B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The point is that the app needs to coldstart in offline modus.&lt;BR /&gt;So it needs to work without ever contacting the ARCGis server&lt;BR /&gt;&lt;BR /&gt;Do you have a sample of the contents of the files? Or can one extract the files from a feature layer of ARCGis server?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 19:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763179#M6827</guid>
      <dc:creator>KirstenBeyer</dc:creator>
      <dc:date>2012-07-14T19:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Files missing from Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763180#M6828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also have the same function is a FeatureLayer of how offline when custom and I do not know a friend you achieve.Can you tell me under realistic idea of �??�??it?Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 06:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/files-missing-from-online-offline-editing-sample/m-p/763180#M6828</guid>
      <dc:creator>LeiQingtian</dc:creator>
      <dc:date>2012-08-09T06:40:55Z</dc:date>
    </item>
  </channel>
</rss>

