<?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 Arcade to classify my data in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097966#M45533</link>
    <description>&lt;P&gt;Thank you Johannes&lt;/P&gt;</description>
    <pubDate>Tue, 14 Sep 2021 10:09:28 GMT</pubDate>
    <dc:creator>AndrewEastop</dc:creator>
    <dc:date>2021-09-14T10:09:28Z</dc:date>
    <item>
      <title>Using Arcade to classify my data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097958#M45529</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have created a new field called 'Settlement_class'. I want it to have two options (Settlement/Non settlement) based on the data in the Band field beside.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bands B G H are settlements and the rest are non settlements. Is Arcade the best way to go about this?&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 09:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097958#M45529</guid>
      <dc:creator>AndrewEastop</dc:creator>
      <dc:date>2021-09-14T09:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to classify my data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097962#M45531</link>
      <description>&lt;P&gt;A simple python expression would be easy as well?&lt;/P&gt;&lt;P&gt;try replacing fld with your fieldname in ! marks below (&amp;nbsp; !FieldNameHere! )&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fld = 'B'
['Non-Settlement', 'Settlement'][fld in ['B', 'G', 'H']]
'Settlement'

fld = 'C'
['Non-Settlement', 'Settlement'][fld in ['B', 'G', 'H']]
'Non-Settlement'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 09:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097962#M45531</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-09-14T09:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to classify my data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097964#M45532</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var settlement_bands = ["B", "G", "H"]
if(Includes(settlement_bands, $feature.Band)) {
  return "Settlement"
}
return "Non settlement"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use that expression&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in the CalculateField tool (switch language to Arcade) to permanently store it in the table&lt;/LI&gt;&lt;LI&gt;in the popup, to show it only there (useful if it changes a lot)&lt;/LI&gt;&lt;LI&gt;in an Attribute Rule, to store it permanently in the table whenever a featire is created and/or updated&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 14 Sep 2021 10:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097964#M45532</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-09-14T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Arcade to classify my data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097966#M45533</link>
      <description>&lt;P&gt;Thank you Johannes&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 10:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-classify-my-data/m-p/1097966#M45533</guid>
      <dc:creator>AndrewEastop</dc:creator>
      <dc:date>2021-09-14T10:09:28Z</dc:date>
    </item>
  </channel>
</rss>

