<?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: Loading rasters/mosaic data by query (from image service), caching and show on map them in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1011400#M5388</link>
    <description>&lt;P&gt;We might need to take a step back here and review what you are using your data for.&amp;nbsp; Is the raster data you are using for visualization only, or are you performing raster analysis on it?&lt;/P&gt;&lt;P&gt;You should also note that you can take an entire webmap offline and there is API for achieving this.&amp;nbsp; This is probably easier than the initial methods I pointed you at which are for taking individual layers offline, although these are what are used in the background.&amp;nbsp; These workflows are introduced here&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/guide/work-offline.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/android/latest/guide/work-offline.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are still going down the route of taking individual layers offline - hence your image service as a tile package, you should understand that tile packages are for visualization and are not added as rasters.&amp;nbsp; If you have a tile package you add it using code like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// load the tile cache from local storage&lt;BR /&gt;&lt;/SPAN&gt;TileCache tileCache = &lt;SPAN&gt;new &lt;/SPAN&gt;TileCache(getExternalFilesDir(&lt;SPAN&gt;null&lt;/SPAN&gt;) + getString(R.string.san_diego_tpk))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// use the tile cache extent to set the view point&lt;BR /&gt;&lt;/SPAN&gt;tileCache.addDoneLoadingListener(() -&amp;gt; mMapView.setViewpoint(&lt;SPAN&gt;new &lt;/SPAN&gt;Viewpoint(&lt;SPAN&gt;tileCache&lt;/SPAN&gt;.getFullExtent())))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// create a tiled layer and add it to as the base map&lt;BR /&gt;&lt;/SPAN&gt;ArcGISTiledLayer tiledLayer = &lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISTiledLayer(tileCache)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;mMapView.getMap().setBasemap(&lt;SPAN&gt;new &lt;/SPAN&gt;Basemap(tiledLayer))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is taken from a sample which loads a basemap from a URL:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/offline-geocode" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/offline-geocode&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 10:11:20 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2020-12-21T10:11:20Z</dc:date>
    <item>
      <title>Loading rasters/mosaic data by query (from image service), caching and show on map them</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010627#M5383</link>
      <description>&lt;P&gt;I am an android developer who uses ArcGis SDK to implement maps. I am having problem with the implementation.&lt;/P&gt;&lt;P&gt;Now I want to download from the server (image &amp;nbsp;server) specific rasters by query (like here: &lt;A href="https://developers.arcgis.com/rest/services-reference/query-image-service-.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/query-image-service-.htm&lt;/A&gt;), for example, download satellite images of a specific object for a specific date. I also want to save them locally (cache) and display them on map.&lt;/P&gt;&lt;P&gt;Please tell me, can I do this using Android Runtime SDK and Image Server?&lt;/P&gt;&lt;P&gt;If not, please tell me if there is another solution for my problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 16:05:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010627#M5383</guid>
      <dc:creator>БелыйАлександр</dc:creator>
      <dc:date>2020-12-17T16:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading rasters/mosaic data by query (from image service), caching and show on map them</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010743#M5384</link>
      <description>&lt;P&gt;If your image server has been configured to allow downloads you should be able to download a tile package of the data for viewing offline.&lt;/P&gt;&lt;P&gt;Are you working with the layer directly or is it part of a webmap?&lt;/P&gt;&lt;P&gt;From your question it sounds like you are adding the service to the map yourself, so if this is the case take a look at the section titled "Tiled Layers" in this doc&amp;nbsp;&lt;A href="https://developers.arcgis.com/java/latest/guide/take-a-layer-offline.htm" target="_blank"&gt;https://developers.arcgis.com/java/latest/guide/take-a-layer-offline.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 19:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010743#M5384</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2020-12-17T19:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading rasters/mosaic data by query (from image service), caching and show on map them</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010866#M5385</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt;, thanks for the answer!&lt;/P&gt;&lt;P&gt;I am working&amp;nbsp;with part of a webmap. But i need work with part of the data (with data tables), becouse i need get data by query (for example: all rassters by some object).&lt;/P&gt;&lt;P&gt;I will try to work with tiled layer and load it offline from image server. Would you write plese how i can work with tpk file which i will get localy?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How i can see in this documentation:&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/guide/add-raster-data.htm" target="_blank"&gt;https://developers.arcgis.com/android/latest/guide/add-raster-data.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can't add rster from tpk file. Write me please if a can do it with tpk file or if you know other method to link loading tiled offline and adding rasster on the map from local file (tpk or other)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 09:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1010866#M5385</guid>
      <dc:creator>БелыйАлександр</dc:creator>
      <dc:date>2020-12-18T09:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loading rasters/mosaic data by query (from image service), caching and show on map them</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1011400#M5388</link>
      <description>&lt;P&gt;We might need to take a step back here and review what you are using your data for.&amp;nbsp; Is the raster data you are using for visualization only, or are you performing raster analysis on it?&lt;/P&gt;&lt;P&gt;You should also note that you can take an entire webmap offline and there is API for achieving this.&amp;nbsp; This is probably easier than the initial methods I pointed you at which are for taking individual layers offline, although these are what are used in the background.&amp;nbsp; These workflows are introduced here&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/guide/work-offline.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/android/latest/guide/work-offline.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are still going down the route of taking individual layers offline - hence your image service as a tile package, you should understand that tile packages are for visualization and are not added as rasters.&amp;nbsp; If you have a tile package you add it using code like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;// load the tile cache from local storage&lt;BR /&gt;&lt;/SPAN&gt;TileCache tileCache = &lt;SPAN&gt;new &lt;/SPAN&gt;TileCache(getExternalFilesDir(&lt;SPAN&gt;null&lt;/SPAN&gt;) + getString(R.string.san_diego_tpk))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// use the tile cache extent to set the view point&lt;BR /&gt;&lt;/SPAN&gt;tileCache.addDoneLoadingListener(() -&amp;gt; mMapView.setViewpoint(&lt;SPAN&gt;new &lt;/SPAN&gt;Viewpoint(&lt;SPAN&gt;tileCache&lt;/SPAN&gt;.getFullExtent())))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// create a tiled layer and add it to as the base map&lt;BR /&gt;&lt;/SPAN&gt;ArcGISTiledLayer tiledLayer = &lt;SPAN&gt;new &lt;/SPAN&gt;ArcGISTiledLayer(tileCache)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;mMapView.getMap().setBasemap(&lt;SPAN&gt;new &lt;/SPAN&gt;Basemap(tiledLayer))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This is taken from a sample which loads a basemap from a URL:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/offline-geocode" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/offline-geocode&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/loading-rasters-mosaic-data-by-query-from-image/m-p/1011400#M5388</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2020-12-21T10:11:20Z</dc:date>
    </item>
  </channel>
</rss>

