<?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 Loading tif files fast. in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-tif-files-fast/m-p/594464#M3024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load raster images (*.tif) to the map. The solution I did is extremly slow. So waiting for a 800x600 image nearly 4 seconds is too much. The problem is somehow the code around it, because loading an image of 6400x6400 nearly needs the same time.&lt;/P&gt;&lt;P&gt;I basically used the way, how to load a tif file, from the following link: &lt;A href="https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm" title="https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm"&gt;https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The problem is that in this solution I would always have to run the &lt;SPAN style="color: #800080;"&gt;EsriRuntimeQt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; for each file. I can't start more than one thread, because the &lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; tells me that a thread has already been started. Starting the &lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; is what needs so much time, I think.&lt;/P&gt;&lt;P&gt;Any suggestions what I can do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually was looking around and found the Mosaic datasets. This seems to be the way I should go. But where can I find it?&lt;/P&gt;&lt;P&gt;In the SDK for the ArcGIS I only have a MosaicRule, but I can't give him the images (*.tif). Are there any examples on how to use this class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Torben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 11:17:18 GMT</pubDate>
    <dc:creator>TorbenWiggerich</dc:creator>
    <dc:date>2014-09-16T11:17:18Z</dc:date>
    <item>
      <title>Loading tif files fast.</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-tif-files-fast/m-p/594464#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to load raster images (*.tif) to the map. The solution I did is extremly slow. So waiting for a 800x600 image nearly 4 seconds is too much. The problem is somehow the code around it, because loading an image of 6400x6400 nearly needs the same time.&lt;/P&gt;&lt;P&gt;I basically used the way, how to load a tif file, from the following link: &lt;A href="https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm" title="https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm"&gt;https://developers.arcgis.com/qt/sample-code/local_raster_sample.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The problem is that in this solution I would always have to run the &lt;SPAN style="color: #800080;"&gt;EsriRuntimeQt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;::&lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; for each file. I can't start more than one thread, because the &lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; tells me that a thread has already been started. Starting the &lt;SPAN style="color: #800080;"&gt;LocalMapService&lt;/SPAN&gt; is what needs so much time, I think.&lt;/P&gt;&lt;P&gt;Any suggestions what I can do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually was looking around and found the Mosaic datasets. This seems to be the way I should go. But where can I find it?&lt;/P&gt;&lt;P&gt;In the SDK for the ArcGIS I only have a MosaicRule, but I can't give him the images (*.tif). Are there any examples on how to use this class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;&lt;P&gt;Torben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 11:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-tif-files-fast/m-p/594464#M3024</guid>
      <dc:creator>TorbenWiggerich</dc:creator>
      <dc:date>2014-09-16T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading tif files fast.</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/loading-tif-files-fast/m-p/594465#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried creating a Map Package that contains your tif image? That would be the better approach than dynamically trying to add the image through the LocalServer. There really isn't a way to optimize the loading of it at the present time, the way you are doing it. We are working on a solution to mitigate this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2014 22:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/loading-tif-files-fast/m-p/594465#M3025</guid>
      <dc:creator>EricBader</dc:creator>
      <dc:date>2014-09-21T22:48:35Z</dc:date>
    </item>
  </channel>
</rss>

