<?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: Programmatically Access Rasters from Mosaic Dataset Image Service using Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349181#M32319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much! Your web map is really impressive. I think I have what I need to figure it out from here.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Nov 2020 22:07:05 GMT</pubDate>
    <dc:creator>tigerwoulds</dc:creator>
    <dc:date>2020-11-07T22:07:05Z</dc:date>
    <item>
      <title>Programmatically Access Rasters from Mosaic Dataset Image Service using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349178#M32316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me preface this with the fact that I am not a GIS Developer, more of a GIS Analyst with minimal programming experience. I have around 150 rasters to publish that will be used in a web map.&amp;nbsp; Running Federated ArcGIS Enterprise 107 and Image Server 107.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to publish these rasters so they work with an existing web map using arcgis jsapi 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than publishing 150 individual services, I have published a mosaic dataset as a single service to my Image Server. &lt;STRONG&gt;How can I access each raster programmatically?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcCatalog I can query/select rasters in a mosaic dataset by it's Name - trying to replicate this in the js api.&lt;/P&gt;&lt;P&gt;Are there any examples out there? I would like to&amp;nbsp;access individual rasters using a unique url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 18:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349178#M32316</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2020-10-30T18:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Access Rasters from Mosaic Dataset Image Service using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349179#M32317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've long struggled through this exact question. You&lt;STRONG&gt; can&lt;/STRONG&gt; access each raster programmatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at &lt;A href="https://woodlandexpansion.hutton.ac.uk/"&gt;this website&lt;/A&gt;&amp;nbsp;which I created to select from 440 different rasters using two sliders (woodland planting scenario on the left and 'time from present' at the bottom) and a checkbox (selects different rasters with or without areas with deep peat soils).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put very simply, it's done by changing the &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html"&gt;DimensionalDefinition&lt;/A&gt;&amp;nbsp;within&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html"&gt;MosaicRule&lt;/A&gt;&amp;nbsp;for each selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have a look at the script on &lt;A href="https://github.com/HuttonLandSystems/WoodlandExpansionWebsite"&gt;github&lt;/A&gt;. Any specific questions, I'm happy to help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gianna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349179#M32317</guid>
      <dc:creator>Gianna_BBSRC</dc:creator>
      <dc:date>2020-11-06T10:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Access Rasters from Mosaic Dataset Image Service using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349180#M32318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on the how the ImageryLayer was published, there could be several different ways to only display certain information.&amp;nbsp; For your use-case, setting the definitionExpression based on the Name field should be one way.&amp;nbsp; When trying to override the default settings as published by the service author, I normally clear/reset the &lt;SPAN&gt;definitionExpression&amp;nbsp;&lt;/SPAN&gt;and mosaicRule properties as soon as the layer is loaded, and then set these properties as needed based on the task at hand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349180#M32318</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2020-11-06T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Access Rasters from Mosaic Dataset Image Service using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349181#M32319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much! Your web map is really impressive. I think I have what I need to figure it out from here.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Nov 2020 22:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programmatically-access-rasters-from-mosaic/m-p/349181#M32319</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2020-11-07T22:07:05Z</dc:date>
    </item>
  </channel>
</rss>

