<?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>idea Provide ability of to_featurelayer to overwrite and name layer. in ArcGIS API for Python Ideas</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/provide-ability-of-to-featurelayer-to-overwrite/idi-p/1072209</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When publishing with GeoAccessor's &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=geoaccessor#arcgis.features.GeoAccessor.to_featurelayer" target="_self"&gt;to_featurelayer&lt;/A&gt; function, the resulting service is given a unique name. Ideally a user could specify a name. To facilitate this, it would great if this function could overwrite an existing feature layer, as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example with psudocode:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayer
from arcgis.features import GeoAccessor

gis = GIS(gis=&amp;lt;&amp;gt;, username=&amp;lt;&amp;gt;, password=&amp;lt;&amp;gt;) 
serviceUrl = "https://services1.arcgis.com/&amp;lt;OrgID&amp;gt;/arcgis/rest/services/&amp;lt;name&amp;gt;/FeatureServer/0"

mylayer = FeatureLayer((serviceUrl))
df = GeoAccessor.from_layer(mylayer)
df.spatial.to_featurelayer(title='',tags='',folder='',name='YourNameHere',overwrite=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 18:26:45 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2021-06-24T18:26:45Z</dc:date>
    <item>
      <title>Provide ability of to_featurelayer to overwrite and name layer.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/provide-ability-of-to-featurelayer-to-overwrite/idi-p/1072209</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When publishing with GeoAccessor's &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html?highlight=geoaccessor#arcgis.features.GeoAccessor.to_featurelayer" target="_self"&gt;to_featurelayer&lt;/A&gt; function, the resulting service is given a unique name. Ideally a user could specify a name. To facilitate this, it would great if this function could overwrite an existing feature layer, as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example with psudocode:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayer
from arcgis.features import GeoAccessor

gis = GIS(gis=&amp;lt;&amp;gt;, username=&amp;lt;&amp;gt;, password=&amp;lt;&amp;gt;) 
serviceUrl = "https://services1.arcgis.com/&amp;lt;OrgID&amp;gt;/arcgis/rest/services/&amp;lt;name&amp;gt;/FeatureServer/0"

mylayer = FeatureLayer((serviceUrl))
df = GeoAccessor.from_layer(mylayer)
df.spatial.to_featurelayer(title='',tags='',folder='',name='YourNameHere',overwrite=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 18:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-ideas/provide-ability-of-to-featurelayer-to-overwrite/idi-p/1072209</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-06-24T18:26:45Z</dc:date>
    </item>
  </channel>
</rss>

