<?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: Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041273#M60587</link>
    <description>&lt;P&gt;I wish I was "sort of retired " lol. Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Mar 2021 02:22:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-03-27T02:22:04Z</dc:date>
    <item>
      <title>Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes</title>
      <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041185#M60582</link>
      <description>&lt;P&gt;FULL DISCLOSURE: New to Python, so using the built in Python code blocks within field calculator would work best for me. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a Census tract shapefile with their corresponding attributes of interest within ArcMap 10.7.1. My project goal is to identify the subset of tracts that share a line segment while:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;maximizing the sum of unemployed people for all tracts (attribute #1) and&lt;/LI&gt;&lt;LI&gt;keeping the unemployment rate for all tracts under 6.5 percent (attribute #2, unemployment rate will need to be calculated as the sum of one field divided by the sum of another field for the selected tracts).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In the past, I've used tools to identify polygons that share a border, and I used the 'Select by Attributes' tool in another project to query.&lt;/P&gt;&lt;P&gt;However, I'm stuck because this particular project has an interdependent set of criteria based on both spatial relationship and corresponding attributes.&lt;/P&gt;&lt;P&gt;How to efficiently model multiple iterations to find optimal solution?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041185#M60582</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-26T19:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes</title>
      <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041191#M60583</link>
      <description>&lt;P&gt;why is this a python question?&lt;/P&gt;&lt;P&gt;step 2 is a field calculator calculation&lt;/P&gt;&lt;P&gt;your boundary line doesn't appear to have changed so it is still a spatial selection&lt;/P&gt;&lt;P&gt;not sure what you mean by maximizing the number of employed people.&lt;/P&gt;&lt;P&gt;If you can deal with your individual requirements, then an "overlay" of some kind will determine where, and if, the combinations can be met.&amp;nbsp; That would be the starting point for any kind of model, process or script&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041191#M60583</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-26T19:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes</title>
      <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041195#M60584</link>
      <description>&lt;P&gt;I need to select a set of contiguous tracts where the total number of&amp;nbsp; unemployed people within those tracts (calculated as the sum of attribute #1) is as high as possible while the quotient calculated from 2 other fields remains below "6.5".&lt;/P&gt;&lt;P&gt;Seemed like a Field Calc (python-related) question.&amp;nbsp; Perhaps I posted to the wrong forum.&lt;/P&gt;&lt;P&gt;Not sure what you mean by "sort of retired"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041195#M60584</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-26T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes</title>
      <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041223#M60586</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/summarize-within.htm" target="_blank"&gt;Summarize Within (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;will give you the summary of your desired fields (eg total)&lt;/P&gt;&lt;P&gt;or even&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/summary-statistics.htm" target="_blank"&gt;Summary Statistics (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp; you can get your ratio there and you can select by attributes from it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"sort of retired"&amp;nbsp; my signature, representing my life status&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 20:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041223#M60586</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-26T20:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find Optimal Subset of Feature Layer Based on Spatial Criteria and Attributes</title>
      <link>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041273#M60587</link>
      <description>&lt;P&gt;I wish I was "sort of retired " lol. Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 02:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-optimal-subset-of-feature-layer-based-on/m-p/1041273#M60587</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-27T02:22:04Z</dc:date>
    </item>
  </channel>
</rss>

