<?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: understanding arcGIS python API function arguments in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823948#M2946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you intersect these two layers, where do you want the output to live?&amp;nbsp; As a new layer in AGOL?&amp;nbsp; Or, are you going to further process it and store the results somewhere else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the first place you are running into issues:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;ptFeatureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'11ed3710e5a54d988d9e4f9d4068ca6f'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This line does not return a Feature Layer object, it returns a GIS Item object.&amp;nbsp; Although the item refers to a feature service that likely has one or more feature layers, it isn't a feature service or feature layer itself.&amp;nbsp; To get access to one or more feature layers within a feature service, you will need to call the dynamic&amp;nbsp; &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;Item.layers&lt;/SPAN&gt; properties (&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item"&gt;arcgis.gis module — Item - arcgis 1.5.0 documentation&lt;/A&gt; )&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Items that have layers (eg FeatureLayerCollection items and ImageryLayer items) and tables have the dynamic&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CITE style="box-sizing: border-box; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;layers&lt;/CITE&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CITE style="box-sizing: border-box; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;tables&lt;/CITE&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties to get to the individual layers/tables in this item.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The same applies to your line getting the polygon feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can provide some more suggestions once you answer the question at the beginning of my response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 16:57:33 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2018-09-20T16:57:33Z</dc:date>
    <item>
      <title>understanding arcGIS python API function arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823946#M2944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to intersect a point layer with a feature layer in the python API to give me a new point layer with attributes of both layers. I'm following the documentation:&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.geometry.html#arcgis.geometry.intersect" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.geometry.html#arcgis.geometry.intersect"&gt;arcgis.geometry module — arcgis 1.5.0 documentation&lt;/A&gt;&amp;nbsp;but I'm not the best&amp;nbsp;with python and having trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write the arguments to the intersect function? There may be more than one mistake I'm making but for now I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Connect&lt;BR /&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.geocoding import geocode&lt;BR /&gt;from arcgis.geometry import filters&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gis = GIS("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" rel="nofollow" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;", "username", "password")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Need this for geocoding later&lt;BR /&gt;map = gis.map("Houston, TX")&lt;BR /&gt;map&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# get the point and polygon layers (geolocated point and census block)&lt;BR /&gt;ptFeatureLayer = gis.content.get('11ed3710e5a54d988d9e4f9d4068ca6f')&lt;BR /&gt;polygonFeatureLayer = gis.content.get('e711b54d031244ae9ec6a1ed9bbcb223')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# stuck at this part&lt;/P&gt;&lt;P&gt;# now do the intersection between a point layer and polygon layer:&lt;BR /&gt;newPointlayer = geometry.intersect('spatialReference': {'wkid': 4326}},&lt;BR /&gt; 'geometries' I DONT KNOW WHAT GOES HERE &lt;BR /&gt; 'geometry': {'geometryType': 'esriGeometryPoint',&lt;BR /&gt; gis=None&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823946#M2944</guid>
      <dc:creator>JosephMidura</dc:creator>
      <dc:date>2018-09-20T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: understanding arcGIS python API function arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823947#M2945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your point and polygon featurelayers in a list/tuple, I suspect and the output type perhaps "Point"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823947#M2945</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-09-20T16:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: understanding arcGIS python API function arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823948#M2946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you intersect these two layers, where do you want the output to live?&amp;nbsp; As a new layer in AGOL?&amp;nbsp; Or, are you going to further process it and store the results somewhere else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the first place you are running into issues:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;ptFeatureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'11ed3710e5a54d988d9e4f9d4068ca6f'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This line does not return a Feature Layer object, it returns a GIS Item object.&amp;nbsp; Although the item refers to a feature service that likely has one or more feature layers, it isn't a feature service or feature layer itself.&amp;nbsp; To get access to one or more feature layers within a feature service, you will need to call the dynamic&amp;nbsp; &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;Item.layers&lt;/SPAN&gt; properties (&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item"&gt;arcgis.gis module — Item - arcgis 1.5.0 documentation&lt;/A&gt; )&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Items that have layers (eg FeatureLayerCollection items and ImageryLayer items) and tables have the dynamic&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CITE style="box-sizing: border-box; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;layers&lt;/CITE&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CITE style="box-sizing: border-box; color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;tables&lt;/CITE&gt;&lt;SPAN style="color: #404040; font-family: Lato, proxima-nova, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;properties to get to the individual layers/tables in this item.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The same applies to your line getting the polygon feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can provide some more suggestions once you answer the question at the beginning of my response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823948#M2946</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-20T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: understanding arcGIS python API function arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823949#M2947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua thanks for the question. I want to use the output of the intersect operation in an external place (i.e. outputted to a csv). Here's a rough outline of what I want to accomplish:&lt;BR /&gt;1. I have a point (address) in one layer, and a shapefile (counties in a region) in a second layer on my AGOL account. The point is an address I'll geolocate. I only saved it as a layer because it made sense to me to intersect two layers together.&lt;/P&gt;&lt;P&gt;2. I want to intersect the point with the polygon (what county is the address in)&lt;/P&gt;&lt;P&gt;3. I want to put&amp;nbsp;the results of the operation somewhere (csv or database). I don't need a resulting layer.&lt;BR /&gt;&lt;BR /&gt;If that isn't clear let me know. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/understanding-arcgis-python-api-function-arguments/m-p/823949#M2947</guid>
      <dc:creator>JosephMidura</dc:creator>
      <dc:date>2018-09-20T18:32:18Z</dc:date>
    </item>
  </channel>
</rss>

