<?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 add hosted feature layers to local feature service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833007#M3238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to append/POST queried features from a AGOL hosted layer to a ArcGIS server feature service using ArcGIS python api? If so, have would I go about doing so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm able to access both feature services and query the features I want. However, I cannot figure how to get them from the hosted feature layer into the local feature service. Any help would be great thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2018 21:45:48 GMT</pubDate>
    <dc:creator>BrianLomas</dc:creator>
    <dc:date>2018-12-21T21:45:48Z</dc:date>
    <item>
      <title>add hosted feature layers to local feature service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833007#M3238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to append/POST queried features from a AGOL hosted layer to a ArcGIS server feature service using ArcGIS python api? If so, have would I go about doing so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I'm able to access both feature services and query the features I want. However, I cannot figure how to get them from the hosted feature layer into the local feature service. Any help would be great thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 21:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833007#M3238</guid>
      <dc:creator>BrianLomas</dc:creator>
      <dc:date>2018-12-21T21:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: add hosted feature layers to local feature service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833008#M3239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to figure it out. ***this may not be best practice but it worked, newbie here...***&lt;/P&gt;&lt;P&gt;However, it does not carry over the attribute information. Any help on that would be great. Thanks.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#loops through features and updates the processed attribute&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; snowplow_fset&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sp_edit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; f
&amp;nbsp;&amp;nbsp;&amp;nbsp; sp_edit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Processed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; update_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; snowplow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;edit_features&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;updates&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sp_edit&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; update_result
&amp;nbsp;&amp;nbsp;&amp;nbsp; t&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;update_result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;#appends select features to local feature service&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fs_layers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;edit_features&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;adds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_result‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833008#M3239</guid>
      <dc:creator>BrianLomas</dc:creator>
      <dc:date>2021-12-12T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: add hosted feature layers to local feature service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833009#M3240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to keep attributes along with geometry by using the ".as_dict" with the features module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#loops through features and updates the processed attribute&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; snowplow_fset&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sp_edit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; f
&amp;nbsp;&amp;nbsp;&amp;nbsp; sp_edit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Processed'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; update_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; snowplow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;edit_features&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;updates&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;sp_edit&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; update_result
&amp;nbsp;&amp;nbsp;&amp;nbsp; t &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; sp_edit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;as_dict
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;#appends select features to local feature service&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fs_layers&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;edit_features&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;adds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;t&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; add_result&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/add-hosted-feature-layers-to-local-feature-service/m-p/833009#M3240</guid>
      <dc:creator>BrianLomas</dc:creator>
      <dc:date>2021-12-12T10:04:39Z</dc:date>
    </item>
  </channel>
</rss>

