<?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: Cannot Distinguish Between GeoPackage Rasters in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609778#M4216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gayle, good to know that you are looking into this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2020 16:46:17 GMT</pubDate>
    <dc:creator>FridjofSchmidt</dc:creator>
    <dc:date>2020-05-06T16:46:17Z</dc:date>
    <item>
      <title>Cannot Distinguish Between GeoPackage Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609776#M4214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Starting from &lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/java/sample-code/raster-layer-geopackage/" title="https://developers.arcgis.com/android/latest/java/sample-code/raster-layer-geopackage/" rel="nofollow noopener noreferrer" target="_blank"&gt;Raster Layer GeoPackage | ArcGIS for Developers&lt;/A&gt; I wrote some code that loads rasters from a GeoPackage into a map. This works as expected. But up to now I am unable to tell which raster is which, because the name of the raster in the GeoPackage does not appear anywhere.&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(GeoPackageRaster r: rasters) {
    r.addDoneLoadingListener(() -&amp;gt; {
        String desc = &lt;SPAN style="color: #660e7a;"&gt;r&lt;/SPAN&gt;.getDescription();
        String path = &lt;SPAN style="color: #660e7a;"&gt;r&lt;/SPAN&gt;.getPath();
        Log.&lt;SPAN style="font-style: italic;"&gt;d&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Raster Path: " &lt;/SPAN&gt;+ path + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;", Description: " &lt;/SPAN&gt;+ desc);
    });

    &lt;SPAN style="color: #808080; font-style: italic;"&gt;// create a layer to show the raster
&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;    &lt;/SPAN&gt;RasterLayer geoPackageRasterLayer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;RasterLayer(r);
    geoPackageRasterLayer.addDoneLoadingListener(() -&amp;gt; {
        String name = &lt;SPAN style="color: #660e7a;"&gt;geoPackageRasterLayer&lt;/SPAN&gt;.getName();
        String desc = &lt;SPAN style="color: #660e7a;"&gt;geoPackageRasterLayer&lt;/SPAN&gt;.getDescription();
        Log.&lt;SPAN style="font-style: italic;"&gt;d&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Layer Name: " &lt;/SPAN&gt;+ name + &lt;SPAN style="color: #008000; font-weight: bold;"&gt;", Description: " &lt;/SPAN&gt;+ desc);
    });
    &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.getMap().getOperationalLayers().add(geoPackageRasterLayer);
}&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;What seems strange to me is that the raster path always returns the path to the GeoPackage, but not to the raster within the GeoPackage. Is this a bug? Also, the description returns an empty string, and a getName method does not exist. I wouldn't expect the RasterLayer to return a name or description if it was not set explicitly, but I tried just to make sure (and it doesn't).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my app, I need to tell the rasters apart in order to assign scale ranges etc. to the layers. Storing each raster in a separate GeoPackage is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't there be a property or method to get more info about a GeoPackage raster?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions&lt;/P&gt;&lt;P&gt;Fridjof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609776#M4214</guid>
      <dc:creator>FridjofSchmidt</dc:creator>
      <dc:date>2021-12-12T02:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Distinguish Between GeoPackage Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609777#M4215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fridjof,&lt;/P&gt;&lt;P&gt;supplying the full Raster path with a name/Id at the end was supported in 100.4 and so is a known regression for us. The issue is in our pipeline to fix and I have added your concern to that issue.&lt;/P&gt;&lt;P&gt;Thanks for your feedback,&lt;/P&gt;&lt;P&gt;Gayle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 09:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609777#M4215</guid>
      <dc:creator>GayleYoung</dc:creator>
      <dc:date>2020-05-06T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Distinguish Between GeoPackage Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609778#M4216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gayle, good to know that you are looking into this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2020 16:46:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/cannot-distinguish-between-geopackage-rasters/m-p/609778#M4216</guid>
      <dc:creator>FridjofSchmidt</dc:creator>
      <dc:date>2020-05-06T16:46:17Z</dc:date>
    </item>
  </channel>
</rss>

