Select to view content in your preferred language

Update Data Source, Maintain Symbology/Labels/Popup Definitions

97
3
Thursday
KyleGruber
Frequent Contributor

When I receive updated layers from a client, I would like to have automated Python scripts that import these layers and update the existing map features.  The issue is that when I do this, the symbology, labeling, and popup definitions are all blown away.  I think I could potentially keep a "dummy" layer that defines the symbology and apply the symbology to the real layer after the update, but is there any equivalent for labeling and pop-ups (keeping in mind that I use scale visibilities pretty heavily in labeling)?

Does anyone know of an easy way to do this?

0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi @KyleGruber,

Are you overwriting the feature classes when you receive the updated layers?  Instead, you could perform a truncate and an append.

KyleGruber
Frequent Contributor

@JakeSkinner 

Yes, that is exactly what I was doing.  I will give that a shot, thank you very much for the quick response!

0 Kudos
JesseWickizer
Esri Contributor

The Apply Symbology From Layer tool will transfer symbology, time field, 3D elevation and offset, label class, and HTML pop-up properties from another layer or layer file.

0 Kudos