AnsweredAssumed Answered

Open Mobile Mosaic Dataset in ArcGIS Runtime .NET

Question asked by deleted-user-Qwv0Lt2wZ0Zu on Jun 27, 2018
Latest reply on Jul 2, 2018 by deleted-user-Qwv0Lt2wZ0Zu



I would like to open a mobile mosaic dataset to display the content as layers within a map. I have created a mobile mosaic dataset by using the instructions here: Mosaic Dataset To Mobile Mosaic Dataset—Data Management toolbox | ArcGIS Desktop, and it has been enabled for use with the Runtime.


The resulting files that are generated by this tool include a Sqlite database with the extension .geodatabase, and a folder that includes raster content. For example, the file is named dem.geodatabase, and the folder dem_source_rasters. 


How do I open the .geodatabase file in order to pull the raster data into the ArcGIS Runtime Map? I have tried to use the following code but I'm getting an error that the geodatabase could not be opened. Is this the correct code to be using to open this type of file? Or is there some documentation that could lead me in the right direction?


string geodbstr = _mosaicDatasetFile;
Geodatabase gdb = await Esri.ArcGISRuntime.Data.Geodatabase.OpenAsync(geodbstr);


FeatureTable ft = gdb.GeodatabaseFeatureTables.FirstOrDefault();

FeatureLayer flyr = new FeatureLayer
     Id = ft.TableName,
     FeatureTable = ft,
     Name = ft.TableName