<?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 Load single raster from Image Service in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/load-single-raster-from-image-service/m-p/507120#M3460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to publish multiple raster (tiff) under one mosaic dataset as Image Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also manage to use ArcGISImageServiceLayer to load the ImageServer above.&lt;/P&gt;&lt;P&gt;but how do I retrieve a single raster image based on their name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set the ImageServiceLayer initialExtent and fullExtent, but ImageServiceLayer always use the Map Extent which always return all the rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also used "setDefinitionExpression" method in ImageServiceLayer but there is nothing being drawn on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest that I manage to do was:&lt;BR /&gt;1. use query on ImageServer with Name = '&amp;lt;raster_name&amp;gt;'&lt;BR /&gt;2. Get the Extent of the return record&lt;BR /&gt;3. Create ImageServiceParameters with Extent in #2 above as value&lt;BR /&gt;4. use exportMapImage and pass in ImageServiceParameters in #3 above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check Chrome debugging console, #4 above return the correct image that I want to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is: &lt;BR /&gt;How do i load the MapImage returned by the method callback into current ImageServiceLayer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2016 03:02:17 GMT</pubDate>
    <dc:creator>HenriLim</dc:creator>
    <dc:date>2016-08-26T03:02:17Z</dc:date>
    <item>
      <title>Load single raster from Image Service</title>
      <link>https://community.esri.com/t5/developers-questions/load-single-raster-from-image-service/m-p/507120#M3460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to publish multiple raster (tiff) under one mosaic dataset as Image Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also manage to use ArcGISImageServiceLayer to load the ImageServer above.&lt;/P&gt;&lt;P&gt;but how do I retrieve a single raster image based on their name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set the ImageServiceLayer initialExtent and fullExtent, but ImageServiceLayer always use the Map Extent which always return all the rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also used "setDefinitionExpression" method in ImageServiceLayer but there is nothing being drawn on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closest that I manage to do was:&lt;BR /&gt;1. use query on ImageServer with Name = '&amp;lt;raster_name&amp;gt;'&lt;BR /&gt;2. Get the Extent of the return record&lt;BR /&gt;3. Create ImageServiceParameters with Extent in #2 above as value&lt;BR /&gt;4. use exportMapImage and pass in ImageServiceParameters in #3 above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check Chrome debugging console, #4 above return the correct image that I want to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question is: &lt;BR /&gt;How do i load the MapImage returned by the method callback into current ImageServiceLayer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 03:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/load-single-raster-from-image-service/m-p/507120#M3460</guid>
      <dc:creator>HenriLim</dc:creator>
      <dc:date>2016-08-26T03:02:17Z</dc:date>
    </item>
  </channel>
</rss>

