AnsweredAssumed Answered

How to add Raster Mosaic to Map from Enterprise GDB (PRO SDK)

Question asked by devonc1301 on Jun 11, 2018
Latest reply on Apr 29, 2019 by drewdowling

I am able to connect to an sde geodatabase and obtain a handle on a raster dataset, but I can't figure out how to add this dataset to my map. I don't see how I would use a Uri since it doesn't exist in a file, and I don't know how to obtain an Item or CIMDataconnection from a RasterDataset type - since these are the three data types allowed in LayerFactory.Instance.CreateMosaicLayer().


var connectionProps = new DatabaseConnectionProperties(EnterpriseDatabaseType.SQLServer)
    AuthenticationMode = AuthenticationMode.OSA,
    Instance = "instance",
    Database = "sdeDOQTX1996",
var doq96GDB = new Geodatabase(connectionProps);
var doqDataset = doq96GDB.OpenDataset<RasterDataset>("sdeDOQTX1996.DBO.Zone14_mosaic");

//LayerFactory.Instance.CreateMosaicLayer(?, map, 0);