<?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 Problems Downloading Tiles Cache in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/problems-downloading-tiles-cache/m-p/215537#M1074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look at the example &lt;/SPAN&gt;&lt;STRONG&gt;"Download Cache Tile (Beta)"&lt;/STRONG&gt;&lt;SPAN&gt; and the program never starts the download of the cache tile, no signals were emitted from the tilecachetask and the progress bar wasn't displayed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to check this behavior, I did a small program based on this example and I got the same result, the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt; did not download the tiles. Then I modified the initialization of the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt;, adding an "userCredentials" with the info of my &lt;/SPAN&gt;&lt;STRONG&gt;ESRI Global Account&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; and later the info of my &lt;/SPAN&gt;&lt;STRONG&gt;Developer Account&lt;/STRONG&gt;&lt;SPAN&gt;, in both cases the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt; emitted the signal "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;tileCacheError&lt;/SPAN&gt;&lt;SPAN&gt;" showing an "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Invalid token&lt;/SPAN&gt;&lt;SPAN&gt;" error and later the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheStatus&lt;/STRONG&gt;&lt;SPAN&gt; signal. How can I solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find below my snippet of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// adding the tileServiceLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;m_tiledServiceLayer = EsriRuntimeQt::ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_map.addLayer(m_tiledServiceLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// tileCacheTask &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;m_serviceUrl&amp;nbsp;&amp;nbsp;&amp;nbsp; = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_usercredentials.setUserAccount("*****", "***");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_tileCacheTask = EsriRuntimeQt::TileCacheTask(m_serviceUrl, m_usercredentials);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Add a rectangle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QPoint pointo;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapPoint= m_map.toMapPoint(m_lastMouseCoord.x(), m_lastMouseCoord.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointo.setX(mapPoint.x());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointo.setY(mapPoint.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setTopLeft(pointo);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setWidth(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setHeight(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Point topLeftMapPoint = Point(pointo.x(), pointo.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Point bottomRightMapPoint = Point(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// create and set the extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_cacheExtent = EsriRuntimeQt::Envelope(topLeftMapPoint.x(), bottomRightMapPoint.y(), bottomRightMapPoint.x(), topLeftMapPoint.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.startPath(m_extentRectangle.topLeft().x(),m_extentRectangle.topLeft().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.topRight().x(), m_extentRectangle.topRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.bottomLeft().x(), m_extentRectangle.bottomLeft().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.closePathWithLine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::SimpleLineSymbol line2(QColor(0,0,0), 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::SimpleFillSymbol simpleFillSym2(QColor(165,42,42,255), EsriRuntimeQt::SimpleFillSymbolStyle::DiagonalCross, line2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Graphic graphic21(poly2, simpleFillSym2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_graphicsLayer.addGraphic(graphic21);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_mapAction-&amp;gt;setChecked(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::GenerateTileCacheParameters params(true, QList&amp;lt;double&amp;gt;() &amp;lt;&amp;lt; 0 &amp;lt;&amp;lt; 1 &amp;lt;&amp;lt; 2 &amp;lt;&amp;lt; 3 &amp;lt;&amp;lt; 4,EsriRuntimeQt::ExportBy::Id,m_cacheExtent,m_map.spatialReference());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QString tileCachePath = "../../temp/test.tpk";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QFile downloadFile(tileCachePath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QDir downloadDir(tileCachePath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Submit the task and download the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_tileCacheTask.submitTileCacheJobAndDownload(params, tileCachePath);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 18:32:23 GMT</pubDate>
    <dc:creator>DavidGuzman_Garcia</dc:creator>
    <dc:date>2014-05-14T18:32:23Z</dc:date>
    <item>
      <title>Problems Downloading Tiles Cache</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/problems-downloading-tiles-cache/m-p/215537#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look at the example &lt;/SPAN&gt;&lt;STRONG&gt;"Download Cache Tile (Beta)"&lt;/STRONG&gt;&lt;SPAN&gt; and the program never starts the download of the cache tile, no signals were emitted from the tilecachetask and the progress bar wasn't displayed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to check this behavior, I did a small program based on this example and I got the same result, the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt; did not download the tiles. Then I modified the initialization of the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt;, adding an "userCredentials" with the info of my &lt;/SPAN&gt;&lt;STRONG&gt;ESRI Global Account&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; and later the info of my &lt;/SPAN&gt;&lt;STRONG&gt;Developer Account&lt;/STRONG&gt;&lt;SPAN&gt;, in both cases the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheTask&lt;/STRONG&gt;&lt;SPAN&gt; emitted the signal "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;tileCacheError&lt;/SPAN&gt;&lt;SPAN&gt;" showing an "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Invalid token&lt;/SPAN&gt;&lt;SPAN&gt;" error and later the &lt;/SPAN&gt;&lt;STRONG&gt;TileCacheStatus&lt;/STRONG&gt;&lt;SPAN&gt; signal. How can I solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find below my snippet of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// adding the tileServiceLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;m_tiledServiceLayer = EsriRuntimeQt::ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_map.addLayer(m_tiledServiceLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// tileCacheTask &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;m_serviceUrl&amp;nbsp;&amp;nbsp;&amp;nbsp; = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_usercredentials.setUserAccount("*****", "***");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_tileCacheTask = EsriRuntimeQt::TileCacheTask(m_serviceUrl, m_usercredentials);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Add a rectangle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QPoint pointo;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mapPoint= m_map.toMapPoint(m_lastMouseCoord.x(), m_lastMouseCoord.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointo.setX(mapPoint.x());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pointo.setY(mapPoint.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setTopLeft(pointo);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setWidth(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_extentRectangle.setHeight(20000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Point topLeftMapPoint = Point(pointo.x(), pointo.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Point bottomRightMapPoint = Point(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// create and set the extent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_cacheExtent = EsriRuntimeQt::Envelope(topLeftMapPoint.x(), bottomRightMapPoint.y(), bottomRightMapPoint.x(), topLeftMapPoint.y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.startPath(m_extentRectangle.topLeft().x(),m_extentRectangle.topLeft().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.topRight().x(), m_extentRectangle.topRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.bottomRight().x(), m_extentRectangle.bottomRight().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.lineTo(m_extentRectangle.bottomLeft().x(), m_extentRectangle.bottomLeft().y());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;poly2.closePathWithLine();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::SimpleLineSymbol line2(QColor(0,0,0), 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::SimpleFillSymbol simpleFillSym2(QColor(165,42,42,255), EsriRuntimeQt::SimpleFillSymbolStyle::DiagonalCross, line2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::Graphic graphic21(poly2, simpleFillSym2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_graphicsLayer.addGraphic(graphic21);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_mapAction-&amp;gt;setChecked(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EsriRuntimeQt::GenerateTileCacheParameters params(true, QList&amp;lt;double&amp;gt;() &amp;lt;&amp;lt; 0 &amp;lt;&amp;lt; 1 &amp;lt;&amp;lt; 2 &amp;lt;&amp;lt; 3 &amp;lt;&amp;lt; 4,EsriRuntimeQt::ExportBy::Id,m_cacheExtent,m_map.spatialReference());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QString tileCachePath = "../../temp/test.tpk";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QFile downloadFile(tileCachePath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QDir downloadDir(tileCachePath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Submit the task and download the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_tileCacheTask.submitTileCacheJobAndDownload(params, tileCachePath);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 18:32:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/problems-downloading-tiles-cache/m-p/215537#M1074</guid>
      <dc:creator>DavidGuzman_Garcia</dc:creator>
      <dc:date>2014-05-14T18:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems Downloading Tiles Cache</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/problems-downloading-tiles-cache/m-p/215538#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your interest for ArcGIS Runtime SDK for Qt. We will be releasing a new version of the SDK shortly that should address this issue. Sorry for the inconvenience that it has caused you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 18:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/problems-downloading-tiles-cache/m-p/215538#M1075</guid>
      <dc:creator>JeanneTrieu</dc:creator>
      <dc:date>2014-05-19T18:16:03Z</dc:date>
    </item>
  </channel>
</rss>

