I'm using a rubbersheet transformation on some features in a layer, and I want to use existing feature classes for the link and anchor layers in the operation; however, I don't want add the link and anchor layers to the map - instead I just want to use them directly from their respective feature classes. Is there someway to do this in Pro? I was able to do this in ArcGIS Desktop.
Using LayerFactory seems like an option since rubbersheet requires the Link and Anchor inputs to be layers, but there doesn't seem to be any way to do this without adding the layers to the map.
Another possibility might be using the MakeFeatureLayer geoprocessing tool without adding the result to the map, but them I'm not sure how to access the in-memory feature layer that is created.
Any help will be greatly appreciated.
Here is the rubbersheet code I'm using:
var transformFeatures = new EditOperation();
transformFeatures.Name = "test";
transformFeatures.Rubbersheet(LayerBeingTransformed, linkLayer, anchorLayer, null, true);
This code works fine if all of the input layers are in the map.