<?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: arcgis.features.manage_data overlay_layers method does not make use of context={&amp;quot;overwrite&amp;quot;:True} parameter. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1280269#M8612</link>
    <description>&lt;P&gt;Found the solution. To get the overwrite to work correctly you need to pass the layer object of the layer you'd like to overwrite into the output_name parameter.&lt;/P&gt;&lt;PRE&gt;grounds_clip = overlay_layers(grounds_layer&lt;SPAN&gt;, &lt;/SPAN&gt;buildings_layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;overlay_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Erase'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;output_name&lt;/SPAN&gt;=grounds_layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;context&lt;/SPAN&gt;={&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;: &lt;SPAN&gt;True&lt;/SPAN&gt;})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 16:19:40 GMT</pubDate>
    <dc:creator>BennyFriedman2</dc:creator>
    <dc:date>2023-04-19T16:19:40Z</dc:date>
    <item>
      <title>arcgis.features.manage_data overlay_layers method does not make use of context={"overwrite":True} parameter.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1279687#M8609</link>
      <description>&lt;P&gt;Hello all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the overlay_layers method to erase building footprints from a layer of ground conditions. I'd like to do this by calling the overlay_layers method on the grounds layer and passing in the buildings layer as the overlay feature, then setting the output_name equal to the grounds layer name so that the cliped grounds layer replaces the original grounds layer. See code below:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;overlay_layers(grounds_layer&lt;SPAN&gt;, &lt;/SPAN&gt;buildings_layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;overlay_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Erase'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;output_name&lt;/SPAN&gt;=&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;grounds_title&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;context&lt;/SPAN&gt;={&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;: &lt;SPAN&gt;True&lt;/SPAN&gt;})&lt;/PRE&gt;&lt;P&gt;Running hat code returns the error: {Exception}Job failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I set the output_name to something like&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;grounds_title&lt;SPAN&gt;}_clipped&lt;/SPAN&gt;&lt;SPAN&gt;" the job runs successfully and a clipped version is added to my arcgis online content.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This leads me to believe it is not a problem with the name, or underlying data but is in fact an issue with the overwrite parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1095"&gt;@KevinHibma&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/50014"&gt;@David_McRitchie&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1279687#M8609</guid>
      <dc:creator>BennyFriedman2</dc:creator>
      <dc:date>2023-04-18T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.features.manage_data overlay_layers method does not make use of context={"overwrite":True} parameter.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1280269#M8612</link>
      <description>&lt;P&gt;Found the solution. To get the overwrite to work correctly you need to pass the layer object of the layer you'd like to overwrite into the output_name parameter.&lt;/P&gt;&lt;PRE&gt;grounds_clip = overlay_layers(grounds_layer&lt;SPAN&gt;, &lt;/SPAN&gt;buildings_layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;overlay_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Erase'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;output_name&lt;/SPAN&gt;=grounds_layer&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;context&lt;/SPAN&gt;={&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;: &lt;SPAN&gt;True&lt;/SPAN&gt;})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 16:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1280269#M8612</guid>
      <dc:creator>BennyFriedman2</dc:creator>
      <dc:date>2023-04-19T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.features.manage_data overlay_layers method does not make use of context={"overwrite":True} parameter.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1285730#M8653</link>
      <description>&lt;P&gt;Hey Benny apologies for not getting a chance to look at this, I was away on holiday. Glad to see you got it all sorted though!&lt;/P&gt;&lt;P&gt;Please feel free to&amp;nbsp;@ mention me in future and more than happy to help where I can.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 16:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-features-manage-data-overlay-layers-method/m-p/1285730#M8653</guid>
      <dc:creator>David_McRitchie</dc:creator>
      <dc:date>2023-05-04T16:19:19Z</dc:date>
    </item>
  </channel>
</rss>

