<?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: Dealing with Group Layers in scripts in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658515#M21944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your group layer name is "Infrastructure" and a layer w/in that group layer is "Streets", then you can find the group in Python with "Infrastructure\Streets"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 00:26:06 GMT</pubDate>
    <dc:creator>DaleHoneycutt</dc:creator>
    <dc:date>2011-06-29T00:26:06Z</dc:date>
    <item>
      <title>Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658514#M21943</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'm working on ArcGIS 9.3.1 and I run a python script which basically does a "select by location" query to several SDE layers which appear on the ArcMAP TOC (using a polygon shapefile the user points to) and copies the selected features to a new shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THE PROBLEM IS that some layers are within a group layer, and then the script gives a error stating :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000840: The value is not a Feature Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (SelectLayerByLocation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now I understand that group layer is not a feature Layer and that SelectLayerByLocation only accepts feature Layers, that's where my question fits in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question: How can I reach a feature layer inside a Group layer using python code? or better yet, how can I tell what kind of layer I'm dealing with (Feature\group layer) using python code(describe method doesn't work on group)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 12:32:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658514#M21943</guid>
      <dc:creator>yonatanrubinstein</dc:creator>
      <dc:date>2011-06-28T12:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658515#M21944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your group layer name is "Infrastructure" and a layer w/in that group layer is "Streets", then you can find the group in Python with "Infrastructure\Streets"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 00:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658515#M21944</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2011-06-29T00:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658516#M21945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If your group layer name is "Infrastructure" and a layer w/in that group layer is "Streets", then you can find the group in Python with "Infrastructure\Streets"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response. However, it did not work - I tried this solution and got the following error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Feature Layer: Dataset background\houses does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (SelectLayerByLocation).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 04:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658516#M21945</guid>
      <dc:creator>yonatanrubinstein</dc:creator>
      <dc:date>2011-06-29T04:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658517#M21946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry: use a forward slash instead of a backward slash, as in "Infrastructure/Streets"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658517#M21946</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2011-06-29T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658518#M21947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry: use a forward slash instead of a backward slash, as in "Infrastructure/Streets"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, but unfortunately, this doesn't work either - the same error message as above is given by the system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 11:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658518#M21947</guid>
      <dc:creator>yonatanrubinstein</dc:creator>
      <dc:date>2011-06-30T11:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658519#M21948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you running the script as a stand-alone script or as a script tool?&amp;nbsp; In order to use layers, you need a script tool that's running 'inside' arcmap.&amp;nbsp; See &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overview_of_creating_script_tools"&gt;An overview of creating script tools&lt;/A&gt;&lt;SPAN&gt; for an explanation of script tools vs. stand-alone scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than the above, I don't know why it's not working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 15:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658519#M21948</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2011-06-30T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with Group Layers in scripts</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658520#M21949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Dale - Thanks a million for trying to help me out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a script tool - I run my script through ArcToolbox and a tool I built, so I guess your answer doesn't answer to my problem - but thanks, you've given me a idea to check maybe there is a tool background property that changing it will help me (i doubt it, but it's worth checking).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll return to say if this step will help in anyway but thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 20:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/dealing-with-group-layers-in-scripts/m-p/658520#M21949</guid>
      <dc:creator>yonatanrubinstein</dc:creator>
      <dc:date>2011-06-30T20:21:29Z</dc:date>
    </item>
  </channel>
</rss>

