<?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: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api? in 3D Questions</title>
    <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524550#M3113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can actually be simplified even further:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;var&lt;/SPAN&gt; s &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"Section_21_7_a_21"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;-3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The doc doesn't indicate that Count() takes a string input though, so we'll need to update that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 22:52:26 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2021-12-11T22:52:26Z</dc:date>
    <item>
      <title>polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524543#M3106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have many&amp;nbsp;(640 or so) feature classes (polygon) that have lower and upper altitudes. &amp;nbsp;I can easily extrude polygons from the ground to a height in 3d using the javascript api, but have not found a way to do this using the lower altitude as the bottom rather than the ground. &amp;nbsp;This can be done in arc scene. &amp;nbsp;Can it be done in the javascript api? &amp;nbsp;I ask this because the data in the service is updated frequently (in some cases every five minutes).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 05:11:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524543#M3106</guid>
      <dc:creator>FrankieEast</dc:creator>
      <dc:date>2017-10-04T05:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524544#M3107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems our new 4.5 feature of driving elevation by an attribute comes right on time for your question. For the lower bound use an arcade expression in &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo"&gt;featureExpressionInfo&lt;/A&gt;. Here's a small sample:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/ralucanicola/pen/JrLqEm?editors=1000#0" title="https://codepen.io/ralucanicola/pen/JrLqEm?editors=1000#0"&gt;https://codepen.io/ralucanicola/pen/JrLqEm?editors=1000#0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524544#M3107</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2017-10-09T15:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api? </title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524545#M3108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&amp;nbsp; I was able to work from that.&amp;nbsp; The example used a single attribute both as the distance off the ground and as the size of the extrusion which wouldn't work for me, but did show me where and what I needed to change things to make it happen.&amp;nbsp; Changing to using the lower_alt as the distance above ground (and converting feet to meters)&amp;nbsp;got them the right height off the ground..&amp;nbsp; Then subtraction of upper_alt - lower_alt to get the extrusion height and bingo!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can see&amp;nbsp;it&amp;nbsp;here: &lt;A href="http://ibriefer.com/tfr.html"&gt;http://ibriefer.com/tfr.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The restricted area in North Dakota is the most interesting.&amp;nbsp; In a 2d map it's not readily apparent that you can legally fly under that long leg of higher altitude restricted area.&amp;nbsp; You have to sleuth that from the text.&amp;nbsp; So, this is pretty cool to be able to visualize that.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Raluca!&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 03:10:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524545#M3108</guid>
      <dc:creator>FrankieEast</dc:creator>
      <dc:date>2017-10-13T03:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524546#M3109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, happy it helped!&amp;nbsp;Interesting idea to map the flight restricted areas like that, thanks for sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in my example I didn't have a second attribute. But the feature is really powerful, because you can then use Arcade and calculate a custom height based either on an initial z value or on one or several attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 09:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524546#M3109</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2017-10-13T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524547#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I love it.&amp;nbsp; I'm working on visualizing controlled airspace (upside down wedding cakes) and airmet/sigmets now.&amp;nbsp; The same code should work.&amp;nbsp; I'll post a link once I have those worked out so you can check them out.&amp;nbsp; I have another question, this one arcade-related.&amp;nbsp; Notice in the current example I linked the gray areas in California for the wildfires that are currently going on.&amp;nbsp; When entered as a hazard/disaster TFR these can contain multiple areas.&amp;nbsp; The type (tfr_type) for that would be&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;Section_91_137_a_NN where NN is the area number.&amp;nbsp; 

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;So, I'd like to set that up in the unique value renderer but if I put a list of values in I get many of the same entries in the legend, and also I'd have to guess and account for the number of areas.&amp;nbsp; e.g. if I account for up to 4 areas (I haven't seen one with that many yet) I could miss a fifth area if that ever occurs (with the way our climate is headed that's probably a when not an if).&amp;nbsp; Is there a way to regex or use Find:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;uniqueValueInfos&lt;/SPAN&gt;: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;value&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Section_99_7"&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383;"&gt;ssiSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Special Security Instructions"
&lt;/SPAN&gt;}, {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;value&lt;/SPAN&gt;: Find(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Section_91_137_a"&lt;/SPAN&gt;, $feature.TFR_TYPE,&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;), //catch any type beginning with &lt;SPAN style="color: #008000; font-weight: bold;"&gt;Section_91_137_a&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383;"&gt;hazardSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Disaster/Hazard Area"
&lt;/SPAN&gt;}, {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;value&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Section_91_145"&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383;"&gt;sportSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"Aerial Demonstration / Sporting Event"
&lt;/SPAN&gt;},&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Find() is undefined when I try what's above.&amp;nbsp; I'll admit up front I'm just now needing to learn this so I could be missing something incredibly obvious.&amp;nbsp; But perhaps our going back and forth working this out (real life data scenarios) could yield some interesting examples that others could benefit from.&amp;nbsp; I could modify the data load in python to trim the area numbers off the type to make it work, but if possible I'd rather not modify data just to help my visualization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea stemming from data that I have... extrusion from a lower polygon to a higher altitude one (ie the sides won't be perfectly vertical).&amp;nbsp; Think icing, thunderstorms, turbulence... I have polygons for these at various altitudes that I allow the user to visualize in 2d using an altitude slider.&amp;nbsp; As you slide up in altitude the polygon layer changes to what's appropriate.&amp;nbsp; It would be seriously cool to be able to extrude between these to create a 3d icing volume (should look like a cloud that disappears flat-tops once the atmosphere becomes rarefied enough to no longer support icing), or thunderstorms...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524547#M3110</guid>
      <dc:creator>FrankieEast</dc:creator>
      <dc:date>2021-12-11T22:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524548#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leave the uniqueValueInfos as they are&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;uniqueValueInfos&lt;/SPAN&gt;: [{
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;value&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Section_99_7"&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383; border: 0px; font-weight: inherit; font-size: 12px;"&gt;ssiSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Special Security Instructions"
&lt;/SPAN&gt;}, {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;value&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Section_91_137_a"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383; border: 0px; font-weight: inherit; font-size: 12px;"&gt;hazardSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Disaster/Hazard Area"
&lt;/SPAN&gt;}, {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;value&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Section_91_145"&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;symbol&lt;/SPAN&gt;: &lt;SPAN style="color: #458383; border: 0px; font-weight: inherit; font-size: 12px;"&gt;sportSym&lt;/SPAN&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #660e7a; border: 0px; font-weight: bold; font-size: 12px;"&gt;label&lt;/SPAN&gt;: &lt;SPAN style="color: #008000; border: 0px; font-weight: bold; font-size: 12px;"&gt;"Aerial Demonstration / Sporting Event"
&lt;/SPAN&gt;},&lt;/PRE&gt;&lt;P&gt;but instead of the renderer field add a &lt;A href="http://jscore.esri.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression" rel="nofollow noopener noreferrer" target="_blank"&gt;valueExpression&lt;/A&gt;&amp;nbsp;that will extract the type from the tfr_type columns. I'm not an expert in Arcade, so I've put together something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; s &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Section_21_7_a_21"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; splitArray &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Split&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; typeArray &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; splitArray&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;IIf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;splitArray&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; typeArray&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; splitArray&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;typeArray&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/41155" target="_blank"&gt;Kristian Ekenes&lt;/A&gt;&amp;nbsp;do you know if there is a straightforward way to remove the last 2&amp;nbsp;characters&amp;nbsp;from a string with Arcade? This seems like a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We currently don't support your last idea...volume visualization will come, but it's not on our priority list right now. I&amp;nbsp;was trying to think of a workaround, but&amp;nbsp;I guess you can't really connect the vertices if the 2 polygons are not the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524548#M3111</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2021-12-11T22:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524549#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, the IIF() function is used improperly. You shouldn't be assigning variable values in the second param. IIF() returns a value based on a conditional expression. I think this is what you would want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;typeArray&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;] = &lt;/SPAN&gt;IIf&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;i &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;splitArray&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;-&lt;/SPAN&gt; &lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; splitArray&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;null&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;do you know if there is a straightforward way to remove the last 2&amp;nbsp;characters&amp;nbsp;from a string with Arcade?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the simplest way I could think of to improve the above expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; s &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Section_21_7_a_21"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; stringLength &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Split&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; stringLength&lt;SPAN class="number token"&gt;-2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this returns&amp;nbsp;"Section_21_7_a_". Do you actually want the final underscore removed? In that case, you could modify it to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; s &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Section_21_7_a_21"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; stringLength &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Split&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; stringLength&lt;SPAN class="number token"&gt;-3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you're looking for? I tested this in the playground and it seems to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524549#M3112</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-12-11T22:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524550#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can actually be simplified even further:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;var&lt;/SPAN&gt; s &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"Section_21_7_a_21"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d74444; border: 0px; font-weight: inherit;"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;-3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The doc doesn't indicate that Count() takes a string input though, so we'll need to update that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524550#M3113</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2021-12-11T22:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524551#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm experiencing drawing issues with larger extruded areas.&amp;nbsp; Thought you might like to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to extrude sigmets into 3d.&amp;nbsp; (&lt;A href="http://www.ibriefer.com/map/sigmets.html"&gt;http://www.ibriefer.com/map/sigmets.html&lt;/A&gt;) Pretty much the same code from extruding the TFR areas.&amp;nbsp; But the sigmet areas are much larger seem to be drawing underground even though their altitudes are well above.&amp;nbsp; It appears to be extruding straight up and flat, if that makes sense, even though extruding from one altitude to another should curve along with the curve of the earth's surface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can see anything obvious that I'm missing I'm all ears.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524551#M3114</guid>
      <dc:creator>FrankieEast</dc:creator>
      <dc:date>2017-10-19T14:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524552#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's nothing obvious that you are missing, it's a known issue... Only the vertices get information about how they should be aligned to the ground. We can't tell where the center of the polygon should be placed because there's no geometry there. Therefore polygons that spread along the globe will have their inner parts sunk into the ground.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing you can do is use a local scene? that way the center of the polygon won't be underground because of the earth curvature.&lt;/P&gt;&lt;P&gt;I noticed that the polygons paths (the margins) are also sinking. That one you can fix by densifying the path using geometryEngine. Here's an example on how to do that client side on a line so that it follows the terrain:&amp;nbsp;&lt;A class="link-titled" href="https://jsfiddle.net/xx6qsacq/2/" title="https://jsfiddle.net/xx6qsacq/2/"&gt;Edit fiddle - JSFiddle&lt;/A&gt;&amp;nbsp; You could apply it to polygons as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 19:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524552#M3115</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2017-10-19T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: polygon feature class in WFS has two altitude fields (lower and upper).  How can I extrude these into 3d in the javascript api?</title>
      <link>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524553#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, that should cover keeping a flightpath above ground also.&amp;nbsp; Some waypoints for a route will have great distances between them and I was concerned the same would happen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 19:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-questions/polygon-feature-class-in-wfs-has-two-altitude/m-p/524553#M3116</guid>
      <dc:creator>FrankieEast</dc:creator>
      <dc:date>2017-10-19T19:53:58Z</dc:date>
    </item>
  </channel>
</rss>

