<?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 Arcade Label - Filter using a different layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054730#M40607</link>
    <description>&lt;P&gt;I am trying to label streets on a map. I want only streets that are within a the polygon layer to display.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this with arcade or is another way better?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RickeyFight_0-1620230263541.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12598iC182FD6A392FF254/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RickeyFight_0-1620230263541.png" alt="RickeyFight_0-1620230263541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 16:01:35 GMT</pubDate>
    <dc:creator>RickeyFight</dc:creator>
    <dc:date>2021-05-05T16:01:35Z</dc:date>
    <item>
      <title>Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054730#M40607</link>
      <description>&lt;P&gt;I am trying to label streets on a map. I want only streets that are within a the polygon layer to display.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this with arcade or is another way better?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RickeyFight_0-1620230263541.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12598iC182FD6A392FF254/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RickeyFight_0-1620230263541.png" alt="RickeyFight_0-1620230263541.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 16:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054730#M40607</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-05-05T16:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054741#M40608</link>
      <description>&lt;LI-CODE lang="cpp"&gt;var portal = Portal('https://www.arcgis.com');
var aoi = FeatureSetByPortalItem(portal, 'polygon_itemid', 0);

if(Intersects($feature, aoi)){
    return $feature.label_field
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That might grab features that are along the edge or barely touch it. You could apply a negative buffer on the polygon, or change Intersects to Within, if you get too many "edge" features labelled.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 16:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054741#M40608</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-05T16:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054759#M40610</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Thank you for the quick reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not using portal so I cannot use var portal.&amp;nbsp; &amp;nbsp;Is there a way to identify another layer in pro arcade.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054759#M40610</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-05-05T17:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054769#M40611</link>
      <description>&lt;P&gt;Try &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#featuresetbyname" target="_self"&gt;FeatureSetByName&lt;/A&gt;, maybe? That would look like this:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;var aoi = FeatureSetByName($map, 'polygon_layername');

if(Intersects($feature, aoi)){
    return $feature.label_field
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 May 2021 17:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054769#M40611</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-05T17:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054774#M40613</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RickeyFight_0-1620235628514.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12603i6C43DAA8413DD3E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RickeyFight_0-1620235628514.png" alt="RickeyFight_0-1620235628514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054774#M40613</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-05-05T17:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054782#M40614</link>
      <description>&lt;P&gt;Oh, shoot. I forgot that using FeatureSetBy... functions is not available in the labeling Arcade profile. My mistake.&lt;/P&gt;&lt;P&gt;Everything else I can find will eliminate labels within a polygon, but not the inverse. Is the polygon layer something you can modify? If you turned it into a giant "donut", with the current shape being the "hole", you could use the Label Weight Ranking settings to exclude labels within that area.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1620236268300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12604iEAF31F61F2CDD8D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1620236268300.png" alt="jcarlson_0-1620236268300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054782#M40614</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-05-05T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054792#M40615</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;Yes I can modify the polygon layer. If I cannot find anything else I will try that. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054792#M40615</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2021-05-05T17:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Label - Filter using a different layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054934#M40628</link>
      <description>&lt;P&gt;Another way would be to clip your streets layer by your polygon, set this street symbol to no color, and then label this street layer rather than the one that extends beyond the polygon.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 21:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-label-filter-using-a-different-layer/m-p/1054934#M40628</guid>
      <dc:creator>LindaWilliams1</dc:creator>
      <dc:date>2021-05-05T21:51:44Z</dc:date>
    </item>
  </channel>
</rss>

