<?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 Can i show the Raster file(fetching from device) without map and will i read spatial data of that file without map? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-i-show-the-raster-file-fetching-from-device/m-p/714530#M5014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently i m showing the raster file with map but i do not want to show the map i just want to show the raster file which is .tif file fetching from my device.&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;rasterPath = Environment.getExternalStorageDirectory().&lt;SPAN style="color: #660e7a;"&gt;path &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"/Download/ara_drone_collect.tif"
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;raster = Raster(rasterPath)
Log.d(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"RasterActivity"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"file : &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;$&lt;/SPAN&gt;rasterPath&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&lt;/SPAN&gt;)

&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;rasterLayer = RasterLayer(raster)

rasterLayer.addDoneLoadingListener &lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;!!.setViewpointGeometryAsync(rasterLayer.&lt;SPAN style="color: #660e7a;"&gt;fullExtent&lt;/SPAN&gt;)
&lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;map = ArcGISMap(Basemap.createImagery())


&lt;SPAN style="color: #808080;"&gt;// add the map to a map view@
&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;!!.&lt;SPAN style="color: #660e7a;"&gt;map &lt;/SPAN&gt;= map
&lt;SPAN style="color: #808080;"&gt;// add the raster as an operational layer
&lt;/SPAN&gt;map.&lt;SPAN style="color: #660e7a;"&gt;operationalLayers&lt;/SPAN&gt;.add(rasterLayer)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 06:35:19 GMT</pubDate>
    <dc:creator>dineshsharma</dc:creator>
    <dc:date>2021-12-12T06:35:19Z</dc:date>
    <item>
      <title>Can i show the Raster file(fetching from device) without map and will i read spatial data of that file without map?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-i-show-the-raster-file-fetching-from-device/m-p/714530#M5014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently i m showing the raster file with map but i do not want to show the map i just want to show the raster file which is .tif file fetching from my device.&lt;/P&gt;&lt;P&gt;Here is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;rasterPath = Environment.getExternalStorageDirectory().&lt;SPAN style="color: #660e7a;"&gt;path &lt;/SPAN&gt;+ &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"/Download/ara_drone_collect.tif"
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;raster = Raster(rasterPath)
Log.d(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"RasterActivity"&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"file : &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;$&lt;/SPAN&gt;rasterPath&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"&lt;/SPAN&gt;)

&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;rasterLayer = RasterLayer(raster)

rasterLayer.addDoneLoadingListener &lt;SPAN style="font-weight: bold;"&gt;{
&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;!!.setViewpointGeometryAsync(rasterLayer.&lt;SPAN style="color: #660e7a;"&gt;fullExtent&lt;/SPAN&gt;)
&lt;SPAN style="font-weight: bold;"&gt;}
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;map = ArcGISMap(Basemap.createImagery())


&lt;SPAN style="color: #808080;"&gt;// add the map to a map view@
&lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;!!.&lt;SPAN style="color: #660e7a;"&gt;map &lt;/SPAN&gt;= map
&lt;SPAN style="color: #808080;"&gt;// add the raster as an operational layer
&lt;/SPAN&gt;map.&lt;SPAN style="color: #660e7a;"&gt;operationalLayers&lt;/SPAN&gt;.add(rasterLayer)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-i-show-the-raster-file-fetching-from-device/m-p/714530#M5014</guid>
      <dc:creator>dineshsharma</dc:creator>
      <dc:date>2021-12-12T06:35:19Z</dc:date>
    </item>
  </channel>
</rss>

