<?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 Raster Images Not Displaying in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/raster-images-not-displaying/m-p/456583#M5618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having just started playing around with 10.2.6, i'm having a few issues with raster data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using the sample provided to add raster data to a map using localmapserver and the provided water-distribution-network.mpk with the sample data.&amp;nbsp; The rasters a have to test display fine using this MPK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added extra functionality to this same to zoom to the extent of the last added raster (as a test), using the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent = (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; layerRef.GetDetailsAsync(0)).Extent;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; MyMapView.SetViewAsync(extent);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;The extent return always has NaN for each value and the SetViewAsync throws as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;So I fired up ArcDesktop and created an Empty MPK with a blank group layer, and set the coordinate system to WGS84.&amp;nbsp; Now when I use this MPK rasters are not displayed at all.&amp;nbsp; However when I use the above code to zoom to the image, the view is set to where the image should have been (had it been displayed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I think this is spatial reference related but can't be sure.&amp;nbsp; If anyone could shed some light on this I would be most grateful.&amp;nbsp; I have previously implemented zoom to raster functionality using a gpk package of the GetRasterProperties tool.&amp;nbsp; This is very long winded, I much prefer the SetViewAsync method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Aug 2015 21:09:47 GMT</pubDate>
    <dc:creator>PhilipCollier</dc:creator>
    <dc:date>2015-08-02T21:09:47Z</dc:date>
    <item>
      <title>Raster Images Not Displaying</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/raster-images-not-displaying/m-p/456583#M5618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having just started playing around with 10.2.6, i'm having a few issues with raster data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using the sample provided to add raster data to a map using localmapserver and the provided water-distribution-network.mpk with the sample data.&amp;nbsp; The rasters a have to test display fine using this MPK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added extra functionality to this same to zoom to the extent of the last added raster (as a test), using the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent = (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; layerRef.GetDetailsAsync(0)).Extent;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; MyMapView.SetViewAsync(extent);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;The extent return always has NaN for each value and the SetViewAsync throws as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;So I fired up ArcDesktop and created an Empty MPK with a blank group layer, and set the coordinate system to WGS84.&amp;nbsp; Now when I use this MPK rasters are not displayed at all.&amp;nbsp; However when I use the above code to zoom to the image, the view is set to where the image should have been (had it been displayed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I think this is spatial reference related but can't be sure.&amp;nbsp; If anyone could shed some light on this I would be most grateful.&amp;nbsp; I have previously implemented zoom to raster functionality using a gpk package of the GetRasterProperties tool.&amp;nbsp; This is very long winded, I much prefer the SetViewAsync method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2015 21:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/raster-images-not-displaying/m-p/456583#M5618</guid>
      <dc:creator>PhilipCollier</dc:creator>
      <dc:date>2015-08-02T21:09:47Z</dc:date>
    </item>
  </channel>
</rss>

