<?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: newbie question about feature layer in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262579#M20220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mody, that's what I needed!&amp;nbsp; It would be nice if, just for clarity, they simply listed all acceptable data types for each parameter without assuming any user knowledge. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 14:29:53 GMT</pubDate>
    <dc:creator>DanielSchatt</dc:creator>
    <dc:date>2015-03-30T14:29:53Z</dc:date>
    <item>
      <title>newbie question about feature layer in Python</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262575#M20216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, I'm confused about something.&amp;nbsp;&amp;nbsp; I just took an ESRI Python course that points out the distinction between feature classes and feature layers, and that some tools require the use of feature layers.&amp;nbsp; Now I need to clip one polygon feature class to another and the Clip analysis tool seems to be what I need.&amp;nbsp; The documentation for this tool says that both the "in_features" and the "clip_features" need to be Feature Layers as opposed to Feature Classes.&amp;nbsp; But in their Clip sample code, they just use shapefiles as is within the tool parameters (code below).&lt;/P&gt;&lt;P&gt;My question is: Why do they NOT need to use the MakeFeatureLayer tool on the in_features and clip_features shapefiles to make Feature Layers for use in the tool?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class="c"&gt;# Name: Clip_Example2.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="c"&gt;# Description: Clip major roads that fall within the study area. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="c"&gt;# Import system modules&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="kn"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="kn"&gt;from&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt; &lt;SPAN class="kn"&gt;import&lt;/SPAN&gt; &lt;SPAN class="n"&gt;env&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="c"&gt;# Set workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;env&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;workspace&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"C:/data"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="c"&gt;# Set local variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;in_features&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"majorrds.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;clip_features&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"study_quads.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;out_feature_class&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"C:/output/studyarea.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;xy_tolerance&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="c"&gt;# Execute Clip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;Clip_analysis&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;in_features&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;clip_features&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;out_feature_class&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;xy_tolerance&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2015 19:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262575#M20216</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2015-03-27T19:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question about feature layer in Python</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262576#M20217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;FeatureLayer can be a layer in ArcMap or a FeatureClass, no need for MakeFeatureLayer.&lt;/P&gt;&lt;P style="text-align: left;"&gt;A few tools (for example Select Layer By Location) needs only a layer. If you would like to use FeatureClass for them you will need to create a layer from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Have Fun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 05:46:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262576#M20217</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-03-29T05:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question about feature layer in Python</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262577#M20218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks much Mody! sorry I'm still a little unclear on this.&amp;nbsp; Now I know this particular tool requirement, but just in general for future reference:&amp;nbsp; If the documentation states it needs a Feature Layer for input, then how does one know that it only needs a Feature Class?&amp;nbsp; Maybe another way of stating this questions is:&amp;nbsp; when writing Python code, when is a Feature Class also a Feature Layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 13:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262577#M20218</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2015-03-30T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question about feature layer in Python</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262578#M20219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;Hi Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;When the parameter is in_layer it means layer only. When the parameter is in_features it means feature class or feature layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;I am not sure if it is written anywhere in the docs but parameter that defined as FeatureLayer can be both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: Arial; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;If you use the wizards within ArcMap you see that you can select a layer from ArcMap or navigate to feature class.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 13:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262578#M20219</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-03-30T13:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question about feature layer in Python</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262579#M20220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mody, that's what I needed!&amp;nbsp; It would be nice if, just for clarity, they simply listed all acceptable data types for each parameter without assuming any user knowledge. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 14:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question-about-feature-layer-in-python/m-p/262579#M20220</guid>
      <dc:creator>DanielSchatt</dc:creator>
      <dc:date>2015-03-30T14:29:53Z</dc:date>
    </item>
  </channel>
</rss>

