AnsweredAssumed Answered

Update datasource programmatically in Pro.

Question asked by ebozhenkoesri-ca-esridist Employee on Feb 12, 2020

I need to read and update a datasource of *.lyr,*.lyrs, *.aprx and *.lpkx from file system or in a project Catalog connected folders/subfolders.
Currently I can change a FetureLayer datasource LayerFactory.Instance.CreateLayer(Uri, map) but the layer is added to the map.
Can I create a FeatureLayer in memory or is there other ways get and update datasource?

 

Thanks,

Evgeny

Outcomes