<?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 ModelBuilder: add a spatial index to the data set output from change privileges in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597128#M19775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work with Modelbuilder in order to make a toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The objective is to update raster from a geodatabase to SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first I rename the existing raster in SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a second time, I copy a raster update (the geodatabase to SDE).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then change privileges (if necessary).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far so good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The third step is to add a spatial index to the data set output from change privileges&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 03:36:14 GMT</pubDate>
    <dc:creator>PierreWeisse</dc:creator>
    <dc:date>2013-11-05T03:36:14Z</dc:date>
    <item>
      <title>ModelBuilder: add a spatial index to the data set output from change privileges</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597128#M19775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work with Modelbuilder in order to make a toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The objective is to update raster from a geodatabase to SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first I rename the existing raster in SDE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a second time, I copy a raster update (the geodatabase to SDE).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then change privileges (if necessary).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far so good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The third step is to add a spatial index to the data set output from change privileges&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 03:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597128#M19775</guid>
      <dc:creator>PierreWeisse</dc:creator>
      <dc:date>2013-11-05T03:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: add a spatial index to the data set output from change privileges</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597129#M19776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Add_Spatial_Index/001700000060000000/"&gt;Add Spatial Index&lt;/A&gt;&lt;SPAN&gt; tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 16:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597129#M19776</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2013-11-05T16:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: add a spatial index to the data set output from change privileges</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597130#M19777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Dayle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that I can not connect the output data set (edit privileges) to the input feature (add a spatial index).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Merci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 19:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597130#M19777</guid>
      <dc:creator>PierreWeisse</dc:creator>
      <dc:date>2013-11-05T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder: add a spatial index to the data set output from change privileges</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597131#M19778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The output of Change Privileges has a data type of "composite", not "feature class".&amp;nbsp; This means you cannot directly connect the output of Change Privileges to a tool that expects a feature class, such as Add Spatial Index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two workarounds:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; "Recast" the output to a data type of feature class. This is done with the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Calculate_Value/0017000000v8000000/"&gt;Calculate Value&lt;/A&gt;&lt;SPAN&gt; tool.&amp;nbsp; To insert the Calculate Value tool into your model, choose &lt;/SPAN&gt;&lt;STRONG&gt;Insert &amp;gt; Model only tools &amp;gt; Calculate Value&lt;/STRONG&gt;&lt;SPAN&gt; from the ModelBuilder menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is a screenshot of a simple model I made with the Calculate Value dialog box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28885[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;SPAN&gt; parameter is the name of the variable output by Change Privileges surrounded by percent signs (%).&amp;nbsp; (See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/A_quick_tour_of_using_inline_variable_substitution/002w0000001t000000/"&gt;inline variable substitution&lt;/A&gt;&lt;SPAN&gt; for more information about the percent signs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;Data type&lt;/STRONG&gt;&lt;SPAN&gt; parameter is Feature Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can connect the output of Calculate Value to Add Spatial Index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This technique will only work if there is only one input dataset to Change Privileges.&amp;nbsp; If you input two or more datasets to Change Privileges, the output will contain multiple datasets and you'll have to parse the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You could also use a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/A_quick_tour_of_using_preconditions/002w0000007r000000/"&gt;precondition&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Using the precondition connector tool, connect the output of Change Privileges to the Add Spatial Index as a precondition, then connect the input to Change Privileges to Add Spatial Index.&amp;nbsp; This way, Change Privileges will execute before Add Spatial Index.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-add-a-spatial-index-to-the-data-set/m-p/597131#M19778</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2013-11-05T20:33:19Z</dc:date>
    </item>
  </channel>
</rss>

