<?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: Download Feature Service(hosted) without making shp file in AGOL in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/download-feature-service-hosted-without-making-shp/m-p/1096175#M62264</link>
    <description>&lt;P&gt;Does it need to be a shape file or can it be in another format like json or csv? Exporting to other formats would be much quicker and easier IMO.&lt;/P&gt;&lt;P&gt;If not, you can always just add an extra line of code to delete the resultant shape file that was added to AGOL after its been downloaded.&lt;/P&gt;&lt;P&gt;Regardless, I don't believe there is a way to just download a shape file without having a copy created in AGOL.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 23:54:01 GMT</pubDate>
    <dc:creator>Kevin_McIntyre</dc:creator>
    <dc:date>2021-09-07T23:54:01Z</dc:date>
    <item>
      <title>Download Feature Service(hosted) without making shp file in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/download-feature-service-hosted-without-making-shp/m-p/1093728#M62197</link>
      <description>&lt;P&gt;I cant seem to find a way to create a shp file from a AGOL feature service without having to create a shp file first that gets created in AGOL (adding something I dont need)&amp;nbsp; then I export that shp onto my laptop.&amp;nbsp; Is there a better way of doing it?&amp;nbsp; Im looking for best practice.&lt;/P&gt;&lt;P&gt;This is what I have&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;###Variables&lt;BR /&gt;&lt;/SPAN&gt;AGOL_Login = GIS(&lt;SPAN&gt;"url"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"username"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"password"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;verify_cert&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;itemToDownload = AGOL_Login.content.get(&lt;SPAN&gt;"b6451dd141bbbd89a0e0fc"&lt;/SPAN&gt;)&lt;BR /&gt;exportLoc = &lt;SPAN&gt;r"C:\Users\youknowit\Desktop\PROJECTS\Downloads"&lt;BR /&gt;&lt;/SPAN&gt;itemExportName_SHP = &lt;SPAN&gt;"test"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;itemToDownload.export(itemExportName_SHP&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Shapefile"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;searchForExportedItem = AGOL_Login.content.search(itemExportName_SHP)&lt;BR /&gt;exportedItemID = searchForExportedItem[&lt;SPAN&gt;0&lt;/SPAN&gt;].id&lt;BR /&gt;getTheExportedItems = AGOL_Login.content.get(exportedItemID)&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;getTheExportedItems.download(exportLoc)&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Aug 2021 18:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/download-feature-service-hosted-without-making-shp/m-p/1093728#M62197</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-30T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Download Feature Service(hosted) without making shp file in AGOL</title>
      <link>https://community.esri.com/t5/python-questions/download-feature-service-hosted-without-making-shp/m-p/1096175#M62264</link>
      <description>&lt;P&gt;Does it need to be a shape file or can it be in another format like json or csv? Exporting to other formats would be much quicker and easier IMO.&lt;/P&gt;&lt;P&gt;If not, you can always just add an extra line of code to delete the resultant shape file that was added to AGOL after its been downloaded.&lt;/P&gt;&lt;P&gt;Regardless, I don't believe there is a way to just download a shape file without having a copy created in AGOL.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 23:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/download-feature-service-hosted-without-making-shp/m-p/1096175#M62264</guid>
      <dc:creator>Kevin_McIntyre</dc:creator>
      <dc:date>2021-09-07T23:54:01Z</dc:date>
    </item>
  </channel>
</rss>

