<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mobile Mosaic Dataset not loading properly and very slow performance! in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mobile-mosaic-dataset-not-loading-properly-and/m-p/1122737#M10684</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28832i476BD41D778D91B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.PNG" alt="issue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have registered 2 tiles ('world.JP2' &amp;amp; 'mycity.jp2') using mobile mosaic dataset raster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However as soon after loading the mosaic datasets, I try to zoom on mycity.jp2 raster, this artifact appears.&lt;/P&gt;&lt;P&gt;Also speed of map rendering is very slow as compared to devexpress mapview control using .png tiles. How can I solve these issues?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code sample for your kind review:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    private async void RegisterRasters()
        {
            // Create a new mobile mosaic dataset.
            MosaicDatasetRaster rasterMosaic = MosaicDatasetRaster.Create(@"E:\Maps\mosaic.sqlite", "Shasta", SpatialReferences.Wgs84);

            // When the new mosaic dataset is ready, add some raster files.
            
            rasterMosaic.LoadStatusChanged += (s, e) =&amp;gt;
            {
                // If loaded successfully, start adding rasters
                if (e.Status == Esri.ArcGISRuntime.LoadStatus.Loaded)
                {
                    AddRastersParameters parameters = new AddRastersParameters();
                         parameters.InputDirectory = @"E:\Maps\rasters";
                        rasterMosaic.AddRastersAsync(parameters);
                    }
                }
            };
            
            await rasterMosaic.LoadAsync();
            MessageBox.Show("Rasters registered!");
          
        }

        private void LoadRastersOnMap(object sender, RoutedEventArgs e)
        {
            
            string sqliteDbPath = @"E:\Maps\mosaic.sqlite";
            // Get mosaic dataset names in the SQLite database.
            var names = MosaicDatasetRaster.GetNames(sqliteDbPath);
            var rasterName = names[0];
            
            // Create a raster from a mosaic dataset
            MosaicDatasetRaster raster = new MosaicDatasetRaster(sqliteDbPath, rasterName);
            
            
           
            RasterLayer rasterLayer = new RasterLayer(raster);
            
           // await rasterLayer.LoadAsync();
            MainMapView.Map.OperationalLayers.Add(rasterLayer);
           
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly while registering rasters, If I set these 2 parameters then this artifact disappears but map loading is still slow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;parameters.MinPixelSizeFactor = 0.01;   
parameters.MaxPixelSizeFactor = 1; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I m unable to find documentation regarding these 2 parameters, Can you explain them as well please).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I have now converted mycity.jp2 in tiles (approx 100 tiles) but .prj file (which has extent information) is not loading.&lt;/P&gt;</description>
    <pubDate>Sun, 05 Dec 2021 13:15:00 GMT</pubDate>
    <dc:creator>TasawarAhmad</dc:creator>
    <dc:date>2021-12-05T13:15:00Z</dc:date>
    <item>
      <title>Mobile Mosaic Dataset not loading properly and very slow performance!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mobile-mosaic-dataset-not-loading-properly-and/m-p/1122737#M10684</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28832i476BD41D778D91B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.PNG" alt="issue.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have registered 2 tiles ('world.JP2' &amp;amp; 'mycity.jp2') using mobile mosaic dataset raster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However as soon after loading the mosaic datasets, I try to zoom on mycity.jp2 raster, this artifact appears.&lt;/P&gt;&lt;P&gt;Also speed of map rendering is very slow as compared to devexpress mapview control using .png tiles. How can I solve these issues?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code sample for your kind review:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    private async void RegisterRasters()
        {
            // Create a new mobile mosaic dataset.
            MosaicDatasetRaster rasterMosaic = MosaicDatasetRaster.Create(@"E:\Maps\mosaic.sqlite", "Shasta", SpatialReferences.Wgs84);

            // When the new mosaic dataset is ready, add some raster files.
            
            rasterMosaic.LoadStatusChanged += (s, e) =&amp;gt;
            {
                // If loaded successfully, start adding rasters
                if (e.Status == Esri.ArcGISRuntime.LoadStatus.Loaded)
                {
                    AddRastersParameters parameters = new AddRastersParameters();
                         parameters.InputDirectory = @"E:\Maps\rasters";
                        rasterMosaic.AddRastersAsync(parameters);
                    }
                }
            };
            
            await rasterMosaic.LoadAsync();
            MessageBox.Show("Rasters registered!");
          
        }

        private void LoadRastersOnMap(object sender, RoutedEventArgs e)
        {
            
            string sqliteDbPath = @"E:\Maps\mosaic.sqlite";
            // Get mosaic dataset names in the SQLite database.
            var names = MosaicDatasetRaster.GetNames(sqliteDbPath);
            var rasterName = names[0];
            
            // Create a raster from a mosaic dataset
            MosaicDatasetRaster raster = new MosaicDatasetRaster(sqliteDbPath, rasterName);
            
            
           
            RasterLayer rasterLayer = new RasterLayer(raster);
            
           // await rasterLayer.LoadAsync();
            MainMapView.Map.OperationalLayers.Add(rasterLayer);
           
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly while registering rasters, If I set these 2 parameters then this artifact disappears but map loading is still slow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;parameters.MinPixelSizeFactor = 0.01;   
parameters.MaxPixelSizeFactor = 1; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I m unable to find documentation regarding these 2 parameters, Can you explain them as well please).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I have now converted mycity.jp2 in tiles (approx 100 tiles) but .prj file (which has extent information) is not loading.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 13:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mobile-mosaic-dataset-not-loading-properly-and/m-p/1122737#M10684</guid>
      <dc:creator>TasawarAhmad</dc:creator>
      <dc:date>2021-12-05T13:15:00Z</dc:date>
    </item>
  </channel>
</rss>

