I want to download data from the city's ArcGIS Hub with python and save it in a fgdb to then be loaded into sde. I have started with this tutorial - ArcGIS Hub. While I can get the feature layer with python I am having a hard time understanding how to save it to a gdb. (I have used arcpy a fair bit but I am new to this arcgis API)
from arcgis.features import FeatureLayer shoreliness_url = \ 'https://services2.arcgis.com/Ce3DhLRthdwbHlfF/arcgis/rest/services/Shorelines_Hosted/FeatureServer/0' shoreliness = FeatureLayer(shoreliness_url) # ???
Suggestions?
My issues are with the back-end configuration and management for organizations, particularly around caching. I won't get into the details here, but Hub had a perfectly workable, user-defined/initiated caching scheme that Esri threw out the window a while back because, well, I don't know exactly. Every "explanation" I have heard simply becomes white noise once I get a sense the product team think they know my needs better than myself.
url <SPAN class="operator token">=</SPAN> <SPAN class="string token">"https://services2.arcgis.com/Ce3DhLRthdwbHlfF/arcgis/rest/services/Shorelines_Hosted/FeatureServer/0"</SPAN> <SPAN class="keyword token">from</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>features <SPAN class="keyword token">import</SPAN> FeatureLayer shoreliness <SPAN class="operator token">=</SPAN> FeatureLayer<SPAN class="punctuation token">(</SPAN>url<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">for</SPAN> f <SPAN class="keyword token">in</SPAN> shoreliness<SPAN class="punctuation token">.</SPAN>properties<SPAN class="punctuation token">.</SPAN>fields<SPAN class="punctuation token">:</SPAN> <SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">[</SPAN><SPAN class="string token">'name'</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">)</SPAN> OBJECTID PRJCTID FID_MARINE_SELECT SHORETYPE MAPSOURCE MAPACURACY MAPDATE QCSTATUS NOTES GLOBALID MARINE_ID HGUID MAPAUTH Shape__Length<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
hmmmm something amiss with your setup?
ArcGIS Pro 2.6 Beta 1 (sorry, no 2.5)
arcgis module installed in the base installation (ie, no clone)
numpy, pandas and the rest are already installed.
I didn't install geopandas, so I can't help you with the geometry
lol - you are not exactly filling me with confidence....
Sorry for the non-helpful comment, but I saw ArcGIS Hub and all I could think about was
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.