<?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: Define Cache area.  v.10 in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718571#M3043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I don't know 10 yet, but with 9.3 the InitialExtent and the FullExtent (or like it named here: Extent) depends on the settings of the map document. It is fixed in the document and normally will not change.&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: &amp;quot;#4169e1&amp;quot;; font-style: italic;"&gt;You right, I noticed that. InitialExtent and Full Extent are set on the server. That is fine I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;What you are looking for is an individual extent. You have to create an envelope (which contains your area) and to give this as parameter instead of the InitialExtent.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Storing should be no problem, thats the point of mobile map caches. The only thing is to NOT delete the map cache when no update is running.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: &amp;quot;#4169e1&amp;quot;; font-style: italic;"&gt;That is what I want to do, - setup an envelop and then pull the data. However, to setup the envelop I have to know what should be inluded. For example, I need a map of road with all of the signs along the road. The signs could be a layer that contains Point objects. So, I have to make an envelop that contains all of those signs. However, I do not know how to run a query, I used QueryFilter object, to query those layers on the server and only after, based on the query result, make an envelop that should be used in the DownloadExtent function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 13:52:54 GMT</pubDate>
    <dc:creator>AlexProtyagov</dc:creator>
    <dc:date>2010-08-05T13:52:54Z</dc:date>
    <item>
      <title>Define Cache area.  v.10</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718569#M3041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to esri. Maybe someone could tell me how on a mobile device define what map area (I guess that is what they call extent) should be cached. Ideally we need &lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;Query (if possible) the ArgGIS server (ver.10) for a route. &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Base on the query result set area of the map that we need to download.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Download and store map that contains the route to a cache on device for off-line use.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Currently I have code to download and store map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
ServiceConn.Url = @"http://192.168.244.9/ArcGIS/services/tt/MapServer/MobileServer";
_cache.DeleteCache( );
ServiceConn.CreateCache( _cache );
_cache.Open( );&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
MobileCacheSyncAgent agent = new MobileCacheSyncAgent( _cache, ServiceConn );
agent.DownloadExtent( _cache.GetInitialExtent( ), 0, 0 );
map.MapLayers.AddRange( _cache );
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do not know how to define area. The _cache.GetInitialExtent() or _cache.GetExtent() give me the same result always. How do I define boundaries of a map that needs to be pulled?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718569#M3041</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-07-30T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Define Cache area.  v.10</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718570#M3042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know 10 yet, but with 9.3 the InitialExtent and the FullExtent (or like it named here: Extent) depends on the settings of the map document. It is fixed in the document and normally will not change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you are looking for is an individual extent. You have to create an envelope (which contains your area) and to give this as parameter instead of the InitialExtent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Storing should be no problem, thats the point of mobile map caches. The only thing is to NOT delete the map cache when no update is running.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 06:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718570#M3042</guid>
      <dc:creator>MaximilianGlas</dc:creator>
      <dc:date>2010-08-02T06:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Define Cache area.  v.10</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718571#M3043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I don't know 10 yet, but with 9.3 the InitialExtent and the FullExtent (or like it named here: Extent) depends on the settings of the map document. It is fixed in the document and normally will not change.&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: &amp;quot;#4169e1&amp;quot;; font-style: italic;"&gt;You right, I noticed that. InitialExtent and Full Extent are set on the server. That is fine I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;What you are looking for is an individual extent. You have to create an envelope (which contains your area) and to give this as parameter instead of the InitialExtent.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Storing should be no problem, thats the point of mobile map caches. The only thing is to NOT delete the map cache when no update is running.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: &amp;quot;#4169e1&amp;quot;; font-style: italic;"&gt;That is what I want to do, - setup an envelop and then pull the data. However, to setup the envelop I have to know what should be inluded. For example, I need a map of road with all of the signs along the road. The signs could be a layer that contains Point objects. So, I have to make an envelop that contains all of those signs. However, I do not know how to run a query, I used QueryFilter object, to query those layers on the server and only after, based on the query result, make an envelop that should be used in the DownloadExtent function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 13:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/define-cache-area-nbsp-v-10/m-p/718571#M3043</guid>
      <dc:creator>AlexProtyagov</dc:creator>
      <dc:date>2010-08-05T13:52:54Z</dc:date>
    </item>
  </channel>
</rss>

