<?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: Select by Location tool on Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507782#M16900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright....just incase anyone else has the same problem....I am posting the solution to my problem. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that the Projections of the input feature classes and those of the raster files which the Zonal Statistics tool was using were different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In order for this tool to recognize the selected data, the selection feature classes must be of the same coordinate system and or projection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Aug 2013 17:25:08 GMT</pubDate>
    <dc:creator>ShikoNjuno</dc:creator>
    <dc:date>2013-08-14T17:25:08Z</dc:date>
    <item>
      <title>Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507778#M16896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is a sample of the model I'm trying to run. It's suppossed to allow the user to interactively select from the layer which polygons to analyze, in relation to the crop feature set. The relationship is set to INTERSECT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26395[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When it runs, I keep getting the following error msg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR 010423: C:\Users\wnjuno.ITRCLT133\AppData\Local\Temp\arcEFDA\t_t9616 does not have valid statistics as required by the operation.&lt;BR /&gt;Failed to execute (Zonal Statistics as Table).&lt;BR /&gt;Failed at Thu Aug 01 10:44:03 2013 (Elapsed Time: 2.00 seconds)&lt;BR /&gt;Failed to execute (Model2).&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I make the selection valid for the Zonal tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 16:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507778#M16896</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-01T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507779#M16897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ERROR 000622: Failed to execute (ZonalStatisticsAsTable). Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000859: The required parameter Zone field is empty, or is not the type of Field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Zonal Statistics as Table (2)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Thu Aug 01 11:22:15 2013 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Model2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Thu Aug 01 11:22:15 2013 (Elapsed Time: 2.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the Select by Location environment to include the Workspace (i.e. I checked the workspace option)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the error msg is as shown above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Help!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 17:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507779#M16897</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-01T17:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507780#M16898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to mention.....the model works just fine within Model Builder, but gives the above mentioned error message outside of Builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions folks???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 21:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507780#M16898</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-13T21:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507781#M16899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have any knowledge on where the selected data goes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think part of the problem is that the &lt;/SPAN&gt;&lt;STRONG&gt;Zonal Statistics&lt;/STRONG&gt;&lt;SPAN&gt; tool cannot recognize the data that's being fed into it by the &lt;/SPAN&gt;&lt;STRONG&gt;Select by Location &lt;/STRONG&gt;&lt;SPAN&gt;tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specific environment setting I should have on so that the &lt;/SPAN&gt;&lt;STRONG&gt;Zonal Stats&lt;/STRONG&gt;&lt;SPAN&gt;.tool can work correctly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 15:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507781#M16899</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-14T15:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507782#M16900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright....just incase anyone else has the same problem....I am posting the solution to my problem. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that the Projections of the input feature classes and those of the raster files which the Zonal Statistics tool was using were different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In order for this tool to recognize the selected data, the selection feature classes must be of the same coordinate system and or projection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 17:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507782#M16900</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-14T17:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Location tool on Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507783#M16901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does anyone have any knowledge on where the selected data goes?&lt;BR /&gt;I think part of the problem is that the &lt;STRONG&gt;Zonal Statistics&lt;/STRONG&gt; tool cannot recognize the data that's being fed into it by the &lt;STRONG&gt;Select by Location &lt;/STRONG&gt;tool.&lt;BR /&gt;Is there a specific environment setting I should have on so that the &lt;STRONG&gt;Zonal Stats&lt;/STRONG&gt;.tool can work correctly?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the previous solution works &lt;/SPAN&gt;&lt;STRONG&gt;if the workspace is constant&lt;/STRONG&gt;&lt;SPAN&gt;. However, I'm trying to allow the workspace to change as per the user's preference. The way how someone on this forum told me to achieve that is by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a &lt;/SPAN&gt;&lt;STRONG&gt;Workspace variable&lt;/STRONG&gt;&lt;SPAN&gt; and making it a precondition for the model to run. The output location of the tools used would therefore begin with %Workspace%....this introduces problems to the model in that it can't validate the output's workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question above still holds, where exactly does the selected data go and how can I make sure that the location is valid for any workspace setting??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts are welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 18:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-location-tool-on-model-builder/m-p/507783#M16901</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-08-14T18:02:16Z</dc:date>
    </item>
  </channel>
</rss>

