<?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: Using ArcGIS Runtime, problems adding raster layer to Map.OperationalLayers  in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780985#M1145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, didn't work for me anymore either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Hope this link works:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net"&gt;https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 16:35:46 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2017-08-07T16:35:46Z</dc:date>
    <item>
      <title>Using ArcGIS Runtime, problems adding raster layer to Map.OperationalLayers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780982#M1142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having problems (not in every case, but when&amp;nbsp;attempting to display some rasters on the map) with either none or some of the Elevation (DEM) Raster Layer not showing up on the map. &amp;nbsp;However, when I bring the raster into ArcMap, the image looks fine. &amp;nbsp;This only happens with the rasters that I assign the Elevation color ramp stretch renderer to. &amp;nbsp;It doesn't happen with rasters that I don't assign a renderer to (although I don't know if that has anything to do with it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my C# code looks like . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using Esri.ArcGISRuntime.Mapping;&lt;BR /&gt;using Esri.ArcGISRuntime.Rasters;&lt;/P&gt;&lt;P&gt;&amp;nbsp;. . . . .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var newRaster = new Raster(rasterPath); // create the raster object from the image file&lt;BR /&gt; var newRasterLayer = new RasterLayer(newRaster); // create the raster layer object from the raster&lt;/P&gt;&lt;P&gt;double[] minVals = { min }; // minimum value for stretch parameters input&lt;BR /&gt; double[] maxVals = { max }; // maximum value for stretch parameters input&lt;BR /&gt; MinMaxStretchParameters minMaxParams = new MinMaxStretchParameters(minVals, maxVals); // create stretch parameters object&lt;BR /&gt; ColorRamp elevationColorRamp = ColorRamp.Create(PresetColorRampType.Elevation); // create the color ramp&lt;BR /&gt; var rendrr = new StretchRenderer(minMaxParams, null, true, elevationColorRamp); // create the renderer from the above&lt;BR /&gt; newRasterLayer.Renderer = rendrr; // apply the renderer to the raster layer&lt;BR /&gt;newRasterLayer.Opacity = 0.6; // set the opacity &lt;BR /&gt; var mapViewModel = ServiceLocator.Current.GetInstance&amp;lt;MapViewModel&amp;gt;(); // get the map view model&lt;BR /&gt; mapViewModel.Map.OperationalLayers.Add(newRasterLayer); // add the raster layer to the map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have there been issues reported having to do with displaying DEM rasters on a map (perhaps relating to OperationalLayers object)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 15:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780982#M1142</guid>
      <dc:creator>ReneeCammarere</dc:creator>
      <dc:date>2017-08-04T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS Runtime, problems adding raster layer to Map.OperationalLayers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780983#M1143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renee, you posted your question under 'ArcGIS Pro SDK', however, if you re-post your question in one of the ArcGIS Runtime SDK communities you will get better coverage.&amp;nbsp; i.e. &lt;A _jive_internal="true" href="https://community.esri.com/message/ArcGIS Runtime SDK for .Net"&gt;https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 16:29:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780983#M1143</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2017-08-04T16:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS Runtime, problems adding raster layer to Map.OperationalLayers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780984#M1144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I clicked on the above link, it indicated . . .&amp;nbsp;&lt;/P&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;H1 style="border: 0px; font-weight: 600; font-size: 26px;"&gt;Not Found&lt;/H1&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;The item does not exist. It may have been deleted.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I was not able to find the proper place to post this. &amp;nbsp;That's why I posted it here.&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 14:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780984#M1144</guid>
      <dc:creator>ReneeCammarere</dc:creator>
      <dc:date>2017-08-07T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcGIS Runtime, problems adding raster layer to Map.OperationalLayers</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780985#M1145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, didn't work for me anymore either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Hope this link works:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net"&gt;https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 16:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/using-arcgis-runtime-problems-adding-raster-layer/m-p/780985#M1145</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2017-08-07T16:35:46Z</dc:date>
    </item>
  </channel>
</rss>

