Hi,
I would like to load the lyrx file in memory (i.e. without loading it on screen) in ArcGIS Pro and use it to do an intersect (or a spatial search) with a layer that is already loaded in Pro. Is that possible? We used to do that in ArcMap / ArcObjects where we read the lyr file into a ILayer object. This ILayer object is only in memory, not on the ArcMap screen.
In Pro, we can call LayerFactory.Instance.CreateLayer() to create a Layer object from a lyr file, but the layer will be loaded on screen.
Uri uri = new Uri(sTempLayerFilePath);
pLayer = LayerFactory.Instance.CreateLayer(uri, _pMap);
> Do you have plan to give option to CreateLayer() not loading layer into Table of Content?
Thanks