<?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 every near 50 points together  in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167185#M429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which still begs the question as to what type of 'distance' is needed.&amp;nbsp; The point locations look far from random and I suspect they are observations 'along' something which makes shortest/closest a whole different issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 20:48:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-05-16T20:48:50Z</dc:date>
    <item>
      <title>Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167179#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a point FC I want to group every near 50 points together.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;I tried:&lt;/STRONG&gt;&lt;BR /&gt;1-Near tool or generate near table tool but the overlap is a big problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-Grouping analysis tool with K-means but the number of points within each group is varying depending on the spatial location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I want is every near 50 point together in one group and only one group might be less than 50 points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it might look something like this &amp;nbsp;(restrict 50 point group)&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/351229_pastedImage_2.png" style="width: 620px; height: 229px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 08:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167179#M423</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2017-05-16T08:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167180#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Showing your point pattern might be better.&amp;nbsp; Perhaps it isn't possible given your restriction and your data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 09:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167180#M424</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-16T09:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167181#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am thinking&amp;nbsp;maybe if I can do some equation on the variance of the coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX: I sort the longitude column and add other column&amp;nbsp;"RANK_X" holding sequence&amp;nbsp;from 1 to the last row then I did the same for the Latitude adding&amp;nbsp;&lt;SPAN&gt;"RANK_Y"&lt;/SPAN&gt; column, and by summing those two rank columns "SUM_COORD" &amp;nbsp;I have a number that indicates the variance in coordinates if I sorted this column the first 50 suppose to be near to each other based on the variance of the coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it's not the best approach and not giving the needed result in all the cases. see example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case1:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/351267_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Case2:&lt;BR /&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/351268_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;do you think I might get something&amp;nbsp;from this approach maybe enhance&amp;nbsp;the result by adding something&amp;nbsp;to the equation?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 10:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167181#M425</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2017-05-16T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167182#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see a few of cases, some of which you have highlighted, where the points are indeed clustered and could form or be used to form, aggregated units.&amp;nbsp; I see far more cases where the linearity of the pattern is going to make meaningful clusters difficult... particularly if you are using a threshold of 50 points.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;So why 50 points? this hasn't been explained?&lt;/LI&gt;&lt;LI&gt;These pints appear to be events collected along a linear network (road? perhaps?)&lt;/LI&gt;&lt;LI&gt;What is the goal/purpose of the clustering?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Answers to these questions may provide more meaningful suggestions.&amp;nbsp; Sorting by longitude and latitude is not going to yield much in the way of useful information.&amp;nbsp; A 'minimum spanning tree' will provide connections that minimize the aggregated distance connecting the points, but this will be of little use if the points are indeed collected along a linear network.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167182#M426</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-16T15:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167183#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a general solution of using the nifty generalized spatial sort available from the Sort tool (requires Advanced license).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Sort—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, in the sorted point table put them into groups with the python expression&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# geodatabase (OIDs start with 1)&lt;/SPAN&gt;
int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;OBJECTID &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# shape (OIDs start with 0)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Whether the results are really what you want (as Dan points out) is another question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167183#M427</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T08:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167184#M428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would go for the&amp;nbsp;solution provided by&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3355"&gt;Curtis Price&lt;/A&gt;&amp;nbsp;. Just did a simple test with some random points and when you use the PEANO option for spatial sort it kinda makes sense...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/351818_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulted in:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/351819_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I did change the formula into:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;!OBJECTID!&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... to get the appropriate distribution of the clases in a file geodatabase:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/351824_pastedImage_5.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:24:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167184#M428</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-05-16T18:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167185#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which still begs the question as to what type of 'distance' is needed.&amp;nbsp; The point locations look far from random and I suspect they are observations 'along' something which makes shortest/closest a whole different issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 20:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167185#M429</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-16T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167186#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The points indeed are events collected along street network.&lt;BR /&gt;50 point is a must as this is the main purpose or request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 13:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167186#M430</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2017-05-18T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167187#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me describe&amp;nbsp;it like this each 50 location will be photographed by a drone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each drone could only take 50 photos, no matter what is the distance to be crossed.&lt;BR /&gt;this is not the real case but it's something similar&amp;nbsp;to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for&amp;nbsp;your&amp;nbsp;answers and comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 13:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167187#M431</guid>
      <dc:creator>AhmedAbdelnasser1</dc:creator>
      <dc:date>2017-05-18T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167188#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense in that context... I just wanted to make sure that the use wasn't the shortest distance... only to find out that method of transport was via road.&amp;nbsp; Drone is good &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;.&amp;nbsp; I would go with the suggestions of the peano search as &lt;A href="https://community.esri.com/people/curtvprice"&gt;curtvprice&lt;/A&gt;‌ and demonstrated by &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 14:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167188#M432</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-18T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Group every near 50 points together</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167189#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree. Would be good to mark the&amp;nbsp;solution provided by&amp;nbsp;&lt;A href="https://community.esri.com/people/curtvprice"&gt;curtvprice&lt;/A&gt;&amp;nbsp;as the correct answer (button "Mark Correct").&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 15:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/group-every-near-50-points-together/m-p/167189#M433</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-05-18T15:03:47Z</dc:date>
    </item>
  </channel>
</rss>

