<?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: constraining ManageMapServerCacheTiles_server by feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/constraining-managemapservercachetiles-server-by/m-p/603144#M47130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, through trial and error I answered my own question. While ManageMapServerCacheTiles_server will accept a lyr file as input, it will not use it correctly for restricting a tile cache update. I found that using a .shp file (the same one from which I had originally built the lyr file) instead of a lyr worked correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 13:40:25 GMT</pubDate>
    <dc:creator>JonathanCox</dc:creator>
    <dc:date>2011-04-05T13:40:25Z</dc:date>
    <item>
      <title>constraining ManageMapServerCacheTiles_server by feature class</title>
      <link>https://community.esri.com/t5/python-questions/constraining-managemapservercachetiles-server-by/m-p/603143#M47129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I'm attempting to write a script which updates a tile cache with ManageMapServerCacheTiles_server. In order to speed up the script, I'd like to update only a subset of the tiles, and was hoping to use a feature class in the update_feature_class parameter to make the tool only recreate those tiles which cover that feature. ManageMapServerCacheTiles_server does recreate my tiles, however it insists on always doing every single tile instead of only those which intersect my feature in update_feature_class. On a possibly related note, it seems that setting update_mode="Recreate Empty Tiles" still results in the tool recreating every single tile. I have confirmed that the lyr file I am using only covers a small portion of the total map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone gotten the feature class constraint on ManageMapServerCacheTiles_server to work correctly? Can you tell me what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InServer="localhost"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InMap="TexPopTest"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InDataFrame="Layers"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RemoveLayers=""&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RedoLevels=""&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RedoUpdateMode="Recreate All Tiles"&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RedoUpdateFeatureClass="J:\wptc\Shapefiles\Selector2.lyr"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ManageMapServerCacheTiles_server(server_name=InServer, object_name=InMap, data_frame=InDataFrame, Layer=RemoveLayers, levels=RedoLevels, update_mode=RedoUpdateMode, update_feature_class=RedoUpdateFeatureClass)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jonathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 20:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/constraining-managemapservercachetiles-server-by/m-p/603143#M47129</guid>
      <dc:creator>JonathanCox</dc:creator>
      <dc:date>2011-03-31T20:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: constraining ManageMapServerCacheTiles_server by feature class</title>
      <link>https://community.esri.com/t5/python-questions/constraining-managemapservercachetiles-server-by/m-p/603144#M47130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, through trial and error I answered my own question. While ManageMapServerCacheTiles_server will accept a lyr file as input, it will not use it correctly for restricting a tile cache update. I found that using a .shp file (the same one from which I had originally built the lyr file) instead of a lyr worked correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 13:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/constraining-managemapservercachetiles-server-by/m-p/603144#M47130</guid>
      <dc:creator>JonathanCox</dc:creator>
      <dc:date>2011-04-05T13:40:25Z</dc:date>
    </item>
  </channel>
</rss>

