<?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: Group by Proximity Group_ID reassignment in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379698#M78468</link>
    <description>&lt;P&gt;In all seriousness though, this only works when it's in order&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 15:17:33 GMT</pubDate>
    <dc:creator>GIGuy</dc:creator>
    <dc:date>2024-02-08T15:17:33Z</dc:date>
    <item>
      <title>Group by Proximity Group_ID reassignment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379184#M78427</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am having trouble with reassigning GroupIDs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For my project, I have two feature classes: a basic points layer and a collection of geolocated images.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GIGuy_0-1707321614346.png" style="width: 212px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93940iD7251E24EAAC1A3A/image-dimensions/212x156?v=v2" width="212" height="156" role="button" title="GIGuy_0-1707321614346.png" alt="GIGuy_0-1707321614346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can tell, there are 4 images for every point. I am trying to create a field in the images that matches the objectID of the points. I have already done this through buffers and have confirmed that it would work. However, I also need to test if I can group the images temporally.&lt;BR /&gt;&lt;BR /&gt;From what I can tell, the only way to do this is through the Group by Proximity tool (if there is a better way to do this please let me know!). With a little bit of tinkering the tool can group the images into three groups. However, how they are aggregated into those groups is out of my control. For instance, while I only need three groups, the tool creates many more and (I believe) assigns them to the most reasonable one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GIGuy_1-1707322433016.png" style="width: 47px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93942iCC2924D178F3F54E/image-dimensions/47x204?v=v2" width="47" height="204" role="button" title="GIGuy_1-1707322433016.png" alt="GIGuy_1-1707322433016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Luckily, these IDs are still in chronological order so if the point feature is collected in the same order as the images, the subsequent "adding attachments" will be a walk in the park. I need to find a way to rank these values and calculate the field as that rank.&lt;BR /&gt;&lt;BR /&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GIGuy_3-1707322630796.png" style="width: 51px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93945iD6CC4400479CF727/image-dimensions/51x263?v=v2" width="51" height="263" role="button" title="GIGuy_3-1707322630796.png" alt="GIGuy_3-1707322630796.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate any advice and insight!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 16:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379184#M78427</guid>
      <dc:creator>GIGuy</dc:creator>
      <dc:date>2024-02-07T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Group by Proximity Group_ID reassignment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379695#M78467</link>
      <description>&lt;P&gt;&amp;nbsp;Never mind guys, I realized I was the GIGuy.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;rank = 0
rank_value = 0
def ranked(x):
    
    global rank
    global rank_value
    
    newValue = x
    
    if newValue == rank_value:
        return(rank)
    else:
        rank_value = newValue
        rank = rank + 1
        return(rank)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 15:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379695#M78467</guid>
      <dc:creator>GIGuy</dc:creator>
      <dc:date>2024-02-08T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Group by Proximity Group_ID reassignment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379698#M78468</link>
      <description>&lt;P&gt;In all seriousness though, this only works when it's in order&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 15:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/group-by-proximity-group-id-reassignment/m-p/1379698#M78468</guid>
      <dc:creator>GIGuy</dc:creator>
      <dc:date>2024-02-08T15:17:33Z</dc:date>
    </item>
  </channel>
</rss>

