<?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 Re: Offline map tiles from a remote server in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1111934#M4454</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/70678"&gt;@FatmaAkdemir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If it works fine when the files are local, but is laggy when accessing the files over a network samba share, it sounds like a network latency issue.&lt;/P&gt;&lt;P&gt;If both computers are Linux, NFS might be better performance but that's a guess. You could implement some caching algorithms to store the images locally in /tmp as they're accessed, and retrieve them from local disk if they are accessed again. The first access would still be slow.&lt;/P&gt;&lt;P&gt;Another idea would be to index and store all your tile images into a database. Then in your method that gets the tile bytes, it would be a sql (or whatever db) call rather than accessing files over the network. That may not work depending on how many tiles you have.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.qt.io/qt-5/sql-driver.html" target="_blank"&gt;https://doc.qt.io/qt-5/sql-driver.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thought would be to compress your tiles and store them at lower resolutions (so smaller file sizes) so they can be read quicker over the samba mount.&lt;/P&gt;&lt;P&gt;Lots of options, but the core issue sounds like the network latency and not the Runtime. You can likely measure the data read times and compare to local file access to see how much network latency you're dealing with to decide on the best course of action.&lt;/P&gt;&lt;P&gt;I hope this help.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 22:49:40 GMT</pubDate>
    <dc:creator>JamesBallard1</dc:creator>
    <dc:date>2021-10-27T22:49:40Z</dc:date>
    <item>
      <title>Offline map tiles from a remote server</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1067242#M4251</link>
      <description>&lt;P&gt;We are using ServiceImageTiledLayer to display our offline map tiles on local disk as below:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;setTileUrl(tileKey, QUrl(QString("/home/fatma/world_imagery_arcgis/%1/%2/%3.png").arg(
                          QString::number(tileKey.level()),
                          QString::number(tileKey.column()),
                          QString::number(tileKey.row()))));&lt;/LI-CODE&gt;&lt;P&gt;If the image tiles were on a remote computer or server on local network, how would I retrieve the image tiles? We do not want map tiles to reside on the same computer with the executable.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 07:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1067242#M4251</guid>
      <dc:creator>FatmaAkdemir</dc:creator>
      <dc:date>2021-06-11T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Offline map tiles from a remote server</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1067418#M4253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/70678"&gt;@FatmaAkdemir&lt;/a&gt;&amp;nbsp;. In the case of local tile data (or over the local network), you would want to implement your own ImageTiledLayer which has the signals and method which will work for this scenario. As long as you can access the tile info over the network/filesystem, this will work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-imagetiledlayer.html#creating-a-custom-image-tiled-layer" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-imagetiledlayer.html#creating-a-custom-image-tiled-layer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-imagetiledlayer.html#setTileData" target="_blank"&gt;https://developers.arcgis.com/qt/cpp/api-reference/esri-arcgisruntime-imagetiledlayer.html#setTileData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 17:04:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1067418#M4253</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-11T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Offline map tiles from a remote server</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1111533#M4452</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/405084"&gt;@JamesBallard1&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;We have tried to get tile data from a remote computer over the local network by mounting the directory using Linux Samba . However Pan/Zoom on the map does not operate seamlessly which is not the case when we put the tiles on the local disk. How can we make things faster when the tiles are on a remote computer?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 07:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1111533#M4452</guid>
      <dc:creator>FatmaAkdemir</dc:creator>
      <dc:date>2021-10-27T07:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Offline map tiles from a remote server</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1111934#M4454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/70678"&gt;@FatmaAkdemir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If it works fine when the files are local, but is laggy when accessing the files over a network samba share, it sounds like a network latency issue.&lt;/P&gt;&lt;P&gt;If both computers are Linux, NFS might be better performance but that's a guess. You could implement some caching algorithms to store the images locally in /tmp as they're accessed, and retrieve them from local disk if they are accessed again. The first access would still be slow.&lt;/P&gt;&lt;P&gt;Another idea would be to index and store all your tile images into a database. Then in your method that gets the tile bytes, it would be a sql (or whatever db) call rather than accessing files over the network. That may not work depending on how many tiles you have.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.qt.io/qt-5/sql-driver.html" target="_blank"&gt;https://doc.qt.io/qt-5/sql-driver.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thought would be to compress your tiles and store them at lower resolutions (so smaller file sizes) so they can be read quicker over the samba mount.&lt;/P&gt;&lt;P&gt;Lots of options, but the core issue sounds like the network latency and not the Runtime. You can likely measure the data read times and compare to local file access to see how much network latency you're dealing with to decide on the best course of action.&lt;/P&gt;&lt;P&gt;I hope this help.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 22:49:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/offline-map-tiles-from-a-remote-server/m-p/1111934#M4454</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-10-27T22:49:40Z</dc:date>
    </item>
  </channel>
</rss>

