<?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 No Arcade expression to format label in a webmap using a wfs layer from Geoserver? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/no-arcade-expression-to-format-label-in-a-webmap/m-p/1263049#M50606</link>
    <description>&lt;P&gt;How can I use arcade expressions for the labels in a webmap for a wfs layer from GeoServer?&lt;/P&gt;&lt;P&gt;I have added a wfs layer from geoserver: Add --&amp;gt; Add layer from URL --&amp;gt; domain/geoserver/ows?service=WFS --&amp;gt; WFS (OGC)&lt;/P&gt;&lt;P&gt;I want to label the features. The label value is a float with many decimals that I want to round. If it's zero I want no decimals, otherwise I want 1 decimal. I can show the labels, but the option to use Arcade expression is missing. I've tried in GeoServer to set to field to double and float, but that didn't make a difference. I have also tried .../&lt;SPAN&gt;geoserver/ogc/features/ and .../geoserver/Neerslag/ows?service=WFS&amp;amp;version=2.0.0&amp;amp;request=GetFeature as urls&lt;/SPAN&gt;&lt;SPAN&gt;. The data changes every 5 - 10 minutes or so and I don't want a wms layer. In other layers that are hosted Feature Layers I do see the expression option, see below, but not in the layers from GeoServer, see last picture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone an idea how I can add a wfs layer from GeoServer in a webmap with an option to use an expression on the labels?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with_expression.PNG" style="width: 426px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64030i64C54C13E9F25397/image-size/large?v=v2&amp;amp;px=999" role="button" title="with_expression.PNG" alt="with_expression.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="no_expression.PNG" style="width: 425px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64031i7CD8F3702FFFD22E/image-size/large?v=v2&amp;amp;px=999" role="button" title="no_expression.PNG" alt="no_expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 15:01:59 GMT</pubDate>
    <dc:creator>XanderWilson</dc:creator>
    <dc:date>2023-03-01T15:01:59Z</dc:date>
    <item>
      <title>No Arcade expression to format label in a webmap using a wfs layer from Geoserver?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/no-arcade-expression-to-format-label-in-a-webmap/m-p/1263049#M50606</link>
      <description>&lt;P&gt;How can I use arcade expressions for the labels in a webmap for a wfs layer from GeoServer?&lt;/P&gt;&lt;P&gt;I have added a wfs layer from geoserver: Add --&amp;gt; Add layer from URL --&amp;gt; domain/geoserver/ows?service=WFS --&amp;gt; WFS (OGC)&lt;/P&gt;&lt;P&gt;I want to label the features. The label value is a float with many decimals that I want to round. If it's zero I want no decimals, otherwise I want 1 decimal. I can show the labels, but the option to use Arcade expression is missing. I've tried in GeoServer to set to field to double and float, but that didn't make a difference. I have also tried .../&lt;SPAN&gt;geoserver/ogc/features/ and .../geoserver/Neerslag/ows?service=WFS&amp;amp;version=2.0.0&amp;amp;request=GetFeature as urls&lt;/SPAN&gt;&lt;SPAN&gt;. The data changes every 5 - 10 minutes or so and I don't want a wms layer. In other layers that are hosted Feature Layers I do see the expression option, see below, but not in the layers from GeoServer, see last picture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone an idea how I can add a wfs layer from GeoServer in a webmap with an option to use an expression on the labels?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with_expression.PNG" style="width: 426px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64030i64C54C13E9F25397/image-size/large?v=v2&amp;amp;px=999" role="button" title="with_expression.PNG" alt="with_expression.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="no_expression.PNG" style="width: 425px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64031i7CD8F3702FFFD22E/image-size/large?v=v2&amp;amp;px=999" role="button" title="no_expression.PNG" alt="no_expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/no-arcade-expression-to-format-label-in-a-webmap/m-p/1263049#M50606</guid>
      <dc:creator>XanderWilson</dc:creator>
      <dc:date>2023-03-01T15:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: No Arcade expression to format label in a webmap using a wfs layer from Geoserver?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/no-arcade-expression-to-format-label-in-a-webmap/m-p/1273460#M51156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/659412"&gt;@XanderWilson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm afraid I think this is expected behaviour and that ArcGIS Online does not support using Arcade to customise labels for WFS layers (this is not specific to only Geoserver WFS).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 11:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/no-arcade-expression-to-format-label-in-a-webmap/m-p/1273460#M51156</guid>
      <dc:creator>PeterHodkinson</dc:creator>
      <dc:date>2023-03-30T11:15:36Z</dc:date>
    </item>
  </channel>
</rss>

