AnsweredAssumed Answered

Simple feature layer overwrite?

Question asked by saulen_grvlsc on Aug 10, 2018
Latest reply on Aug 14, 2018 by MOgbuchiekwe-esristaff

I'm trying to overwrite a feature layer with a feature class in a local GDB, essentially just trying to script the process that takes two clicks to do within ArcGIS Pro.

 

 

I think this is how you construct the overwrite but I can't find how to choose which layer you're overwriting.


variable name that corresponds with feature layer
.manager.overwrite('path to local data')

Do I have to search for feature layer first using something like this?

search_result
= gis.content.search(query='title:test', item_type='Feature Layer Collection')
flc=FeatureLayerCollection.fromitem(search_result[0])

What's difference between Feature Layer and Feature Layer Collection?  Instead of searching can I just identify the feature layer by item id?

Scott

Outcomes