My team is working on an application that ingests multiple RPF datasets of different granularity/detail. When all these datasets are loaded all at once, the app slows way down when zooming in or out. Any suggestions on how to alleviate this behavior?
My RPF ingest follows the pattern:
foreach file in dataset
{
Raster newRasterFile = new file;
rasterLayer = new RasterLayer(newRasterFile);
GeoMap?.OperationalLayers.Add(rasterLayer);
await rasterLayer.LoadAsync();
}
@dotMorten_esri I tried the new code snippet, but I am getting the same results. I'll start playing around with disabling the base map.
One item of interest: When I am loading each map tile into its own RasterLayer as in my original code segment, I get an expected an Envelope:
{Envelope[XMin=-80.51573604060913, YMin=32.51048592608696, XMax=-80.497461928934, YMax=32.52429666777494, Wkid=4326]}
When I put all the map tiles into the mosaic and then create a RasterLayer from the mosaic, I see an Envelope like this:
{Envelope[XMin=-80.51573604099997, YMin=-767.5, XMax=767.5000000000002, YMax=32.99386188500006, Wkid=4326]}
The Ymin and XMax appear to be really whacked out. I wonder if this confusing the map engine somehow?
Going to come at this problem a little bit different. I am going describe the RPF dataset that my users are receiving from NGA that they want to ingest in my application. These datasets follow the structure:
My application needs to ingest the map tiles that are located in the /ni76h1 and /ni176i1 directories to build a complete map. I am able to do this with recursively loading all file names with a .i42 extension into their own Raster, creating a new RasterLayer from each Raster, and then adding them to the OperationalLayer.
Is the MosaicDatasetRaster the correct vehicle to do the above or is there a better way?
@dotMorten_esri @SomeGISGuy Circling back: Do you guys have any further suggestions or any other resources I could explore for getting the MosaicDatasetRaster to display?
FWIW: I am able to pull the geodatabase created by the MosaicDatasetRaster into ArcGIS Pro, but it only displays colored tiles within the boundaries of the dataset. Still can't see map content.
I am going to try this with a GroupLayer.