<?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: Bug in ENC `twoDepthShades` rendering in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1067181#M4249</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;thanks for the update. If you feel there's a Runtime bug here, please log an issue with support so we can follow up. There is a fair amount of complexity here, so we'd need to dedicate some time and resources to chasing this down further.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 00:08:31 GMT</pubDate>
    <dc:creator>JamesBallard1</dc:creator>
    <dc:date>2021-06-11T00:08:31Z</dc:date>
    <item>
      <title>Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066029#M4223</link>
      <description>&lt;P&gt;It looks like there is a minor color fill bug when setting&lt;/P&gt;&lt;PRE&gt;EncEnvironmentSettings.displaySettings.marinerSettings.twoDepthShades = false&lt;/PRE&gt;&lt;P&gt;This should &lt;A href="https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-encmarinersettings.html" target="_self"&gt;enable the four-color mode&lt;/A&gt;, which in particular should show a different color for areas below the shallow depth vs above it. However, I only get three shades and am missing the critical safe/shallow coloration.&lt;/P&gt;&lt;P&gt;The following images are taken from a viewpoint in the Boston harbor area, at 42.34, -70.99.&lt;/P&gt;&lt;P&gt;The first image is from a custom QML app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-08 at 10.56.18.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15407i6FEC86AB3522EF4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-08 at 10.56.18.png" alt="Screen Shot 2021-06-08 at 10.56.18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The second image is from &lt;A href="https://www.nauticalcharts.noaa.gov/ENCOnline/enconline.html" target="_self"&gt;NOAA ENCOnline&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-08 at 10.56.32.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15409iA3691C50EFD6AE8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-08 at 10.56.32.png" alt="Screen Shot 2021-06-08 at 10.56.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the second image, the area between Safe and Shallow is colored differently from the area inside the Shallow contour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NOAA map is rendered using ArcGIS, so this points toward a coloration bug in the SDK itself. I don't have any experience with the other SDKs so can't verify if this behavior exists across all SDKs or is only in the Qt/QML one.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 15:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066029#M4223</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-08T15:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066091#M4225</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I cannot reproduce what you're seeing at&amp;nbsp;&lt;A href="https://www.nauticalcharts.noaa.gov/ENCOnline/enconline.html" target="_blank"&gt;https://www.nauticalcharts.noaa.gov/ENCOnline/enconline.html&lt;/A&gt;. Can you confirm if some other Maritime display properties are needed to display the four-color mode? Here's what I did (see screenshot from online viewer). At that long/lat the section in question displays identical to your Runtime screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-08 at 10.04.58 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15422i78B557F48386947F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-08 at 10.04.58 AM.png" alt="Screen Shot 2021-06-08 at 10.04.58 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 17:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066091#M4225</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-08T17:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066095#M4227</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/405084"&gt;@JamesBallard1&lt;/a&gt;&amp;nbsp;thanks for the rapid response. I think the difference we're seeing is that NOAA ENCOnline sets different default depths. Here's what I'm using:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-08 at 13.17.13.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15424iA9D48DAC22C4F60A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-08 at 13.17.13.png" alt="Screen Shot 2021-06-08 at 13.17.13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the same depths I have in my settings for my Qt app.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 17:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066095#M4227</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-08T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066114#M4228</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;thanks for the info. I see what you're seeing in the online viewer now. I don't have the offline dataset for that region near Boston to display and troubleshoot with Runtime, but I do see that this is working as intended with the sample dataset.&lt;/P&gt;&lt;P&gt;Here's some code I added to test it:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Component.onCompleted: {
    // set resource path
    EncEnvironmentSettings.resourcePath = dataPath + "/ENC/hydrography";

    // load the EncExchangeSet
    encExchangeSet.load();

    EncEnvironmentSettings.displaySettings.marinerSettings.shallowContour = 1.8;
    EncEnvironmentSettings.displaySettings.marinerSettings.safetyContour = 3.5;
    EncEnvironmentSettings.displaySettings.marinerSettings.deepContour = 10.0;
}

MapView {
    id: mapView
    anchors.fill: parent

    CheckBox {
        checked: false
        text: qsTr("Two-color depth zones")
        onCheckStateChanged: {
            EncEnvironmentSettings.displaySettings.marinerSettings.twoDepthShades = (checkState === Qt.Checked);
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6257951966001w714h540r352" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6257951966001" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6257951966001w714h540r352');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6257951966001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 17:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066114#M4228</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-08T17:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066978#M4240</link>
      <description>&lt;P&gt;So this bug is clearly sporadic. I'm trying to find a way to systematically recreate it. I can't quite figure out what's triggering it It might be setting other&amp;nbsp;EncEnvironmentSettings.displaySettings settings, or maybe it's related to already having an instance of the ENC loaded into memory, e.g. if I'm running the desktop app multiple times simultaneously.&lt;/P&gt;&lt;P&gt;This is going to be hard to explain, so bear with me.&lt;/P&gt;&lt;P&gt;I have observed the following behavior:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INITIALLY...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With shallowContour at 1.81, I was able to make four colors appear by removing all additional&amp;nbsp;EncEnvironmentSettings.displaySettings settings, beyond the four used in your post. I was able to add `EncEnvironmentSettings.displaySettings.marinerSettings.displayCategories.standardDisplay = true;` to provoke the system to fail to show four colors.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND THEN...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I was no longer able to get all four colors to appear, not even by reverting to the prior known-good condition. I only got all four colors to appear by closing all instances of my app.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND NOW...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;By making shallowContour be 1.81, four colors fail to appear, but all four appear at shallowContour at 1.8. However, setting&amp;nbsp;`EncEnvironmentSettings.displaySettings.marinerSettings.displayCategories.standardDisplay = true; `no longer causes the failure.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPRODUCEABILITY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, no, maybe-so? I have tried recreating it with the AddEncExchangeSet example, and so far that works perfectly every time. No matter `1.8` or `1.81`, or setting any other EncEnvironmentSettings, etc... So there is some critical difference between our two apps.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1066978#M4240</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-10T16:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1067006#M4241</link>
      <description>&lt;P&gt;Bit of an update. By grabbing the NOAA ENC for Boston Inner Harbor (&lt;A href="https://charts.noaa.gov/ENCs/Agreement.shtml?US5MA11M" target="_blank" rel="noopener"&gt;https://charts.noaa.gov/ENCs/Agreement.shtml?US5MA11M&lt;/A&gt;), I can reproduce this with the AddEncExchangeSet example.&lt;/P&gt;&lt;P&gt;*Currently*, I cause the failure by toggling between `shallowDepth = 1.8` and `shallowDepth = 1.81`.&lt;/P&gt;&lt;P&gt;Curious, I went back to the NOAA ENCOnline viewer. It turns out that this display issue is reproducible in their online viewer as well. What's strange is that it's highly dependent on the exact values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-10 at 13.19.03.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15651iA007E12E9870F6EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-10 at 13.19.03.png" alt="Screen Shot 2021-06-10 at 13.19.03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-10 at 13.19.08.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15652i8E76DE71CBE06834/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-10 at 13.19.08.png" alt="Screen Shot 2021-06-10 at 13.19.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-10 at 13.19.16.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15653iC566FAFFA5196FE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-10 at 13.19.16.png" alt="Screen Shot 2021-06-10 at 13.19.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;I'm not a big believer in coincidences. 1.80m = 5.906ft, 1.801m = 5.909ft, so there's no magic threshold being crossed in another unit system.&lt;/P&gt;&lt;P&gt;Playing around, I realized that 1.81 becomes valid once the safe depth goes above 3.6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-10 at 13.18.46.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15654i4259A24C0F712EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-10 at 13.18.46.png" alt="Screen Shot 2021-06-10 at 13.18.46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-10 at 13.18.40.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15655i268A7BB104A6E3C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-06-10 at 13.18.40.png" alt="Screen Shot 2021-06-10 at 13.18.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This might be a NOAA or S-57 thing, where 0.30m is approximately 1ft (although 1.8m is 5'10 3/4", not 6ft!), and all data is being forced into the closest foot bucket. That would be wrong, but considering the imprecision there might be nothing which can be done about it.&lt;/P&gt;&lt;P&gt;Likewise, with the ENC provided sample dataset, it looks like the settings have a similar effect, but for a different range of values. I'm beginning to think that what I'm seeing is an interaction with some underlying feature of the dataset which is subtle but relevant. (I'm learning here, so apologies for not understanding the full extents of the ENC's backend.)&lt;/P&gt;&lt;P&gt;Where this is a problem and winds up displaying bug-like behavior is with unit conversion. As my app's backend is in standard units, I convert any non-standard user units (feet or fathoms) into metric. So if a user inputs 5' 11" as the keel depth, this gets converted into 1.8034m.&lt;/P&gt;&lt;P&gt;P.S. This still doesn't explain the inconsistency I saw in my app, but I'm willing to chalk that up to make_clean hiccups.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1067006#M4241</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-10T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1067181#M4249</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;thanks for the update. If you feel there's a Runtime bug here, please log an issue with support so we can follow up. There is a fair amount of complexity here, so we'd need to dedicate some time and resources to chasing this down further.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 00:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1067181#M4249</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-06-11T00:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1070574#M4268</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/368809"&gt;@KennSebesta&lt;/a&gt;&amp;nbsp;All screenshots in this thread are correct.&lt;/P&gt;&lt;P&gt;It isn't clear what your expectations are so if you can just post one screenshot that you think is incorrect and state why you think is incorrect I may be able to explain why it's like that. The relevant parameters are the 3 depth values and whether you are using 2 or 4 depth shades.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jun 2021 17:02:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1070574#M4268</guid>
      <dc:creator>HydroExpert</dc:creator>
      <dc:date>2021-06-21T17:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in ENC `twoDepthShades` rendering</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1073724#M4282</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/490561"&gt;@HydroExpert&lt;/a&gt;,&amp;nbsp;I think after working with this a little while longer there is no programming bug, rather the problem lies between the expectations and the reality. The documentation is silent as to the fact that the depth contour lines are a hardcoded feature of the underlying data and thus cannot be adjusted by any ENC viewer settings.&lt;/P&gt;&lt;P&gt;I don't claim that the results don't make programatic sense-- they do--, however they do not make lay sense. As such, it would probably be a good idea to make it clear in the docu that the depth contour colors are not, by design, faithful to the depth contour color setting.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 15:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/bug-in-enc-twodepthshades-rendering/m-p/1073724#M4282</guid>
      <dc:creator>KennSebesta</dc:creator>
      <dc:date>2021-06-29T15:17:32Z</dc:date>
    </item>
  </channel>
</rss>

