<?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: Create Feature Layer from csv from cloud in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329637#M54647</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your workflow sounds correct.&amp;nbsp; You can use the following script in the document below to perform the truncate/append, or just use arcpy's Truncate and Append tools.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/update-hosted-feature-service-with-feature-class/tac-p/1143563#M1496" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-documents/update-hosted-feature-service-with-feature-class/tac-p/1143563&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2023 15:27:07 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2023-09-18T15:27:07Z</dc:date>
    <item>
      <title>Create Feature Layer from csv from cloud</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329625#M54645</link>
      <description>&lt;P&gt;I have a csv file that I a can read from a specific URL.&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN&gt;https://stadlspoceastus.blob.core.windows.net/curated/CrashAnalysisData/v2/real_time_prediction............. Snip ........&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data refreshes every 30 minutes or so.&amp;nbsp; I am trying to find the best workflow&amp;nbsp;to display this data in AGOL.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Not sure if I should stage in SDE (take csv and create Feature Class and spin up to a Service) and create a python script to read the csv and truncate/append the data in SDE, if I spin this up to a service and reference this in AGOL that should do the trick I think&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Is there a way to add this .csv file to AGOL and then create a feature layer off of it?&amp;nbsp; But how would I automate the truncate and append in AGOL?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Any thoughts would be most appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 16:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329625#M54645</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2023-09-18T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create Feature Layer from csv from cloud</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329627#M54646</link>
      <description>&lt;P&gt;I forgot to mention that I need to process this data a bit.&amp;nbsp; I have a route later that I am using&amp;nbsp;&lt;SPAN&gt;arcpy.lr.MakeRouteEventLayer on.&amp;nbsp; I take the MeasureTo and MeasureFrom in the csv file to create a line feature.&amp;nbsp; It is this line feature that I am trying to show in AGOL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My initial thought was to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Step 1&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Take the csv file and run the GP tool to create this Feature Class in SDE&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Spin this FC up to a service and reference in AGOL&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Step 2&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Create a python file that will read the .csv file every 30 minutes or so and create a temp Feature Layer in Python using MakeRouteEventLayer&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Then use the New Route Event Layer to Truncate and append the data in SDE.&amp;nbsp; Thus updating the data in AGOL&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Does that make sense?&amp;nbsp; Any other ways to do this?&amp;nbsp; Im am thinking Local as the processing every 30 minutes would eat credits...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329627#M54646</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2023-09-18T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Feature Layer from csv from cloud</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329637#M54647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Your workflow sounds correct.&amp;nbsp; You can use the following script in the document below to perform the truncate/append, or just use arcpy's Truncate and Append tools.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/update-hosted-feature-service-with-feature-class/tac-p/1143563#M1496" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-documents/update-hosted-feature-service-with-feature-class/tac-p/1143563&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/create-feature-layer-from-csv-from-cloud/m-p/1329637#M54647</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2023-09-18T15:27:07Z</dc:date>
    </item>
  </channel>
</rss>

