<?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 Count common unique attribute values of points in &amp;gt;1 polygon in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/count-common-unique-attribute-values-of-points-in/m-p/425636#M1330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;I have a &lt;STRONG&gt;point&lt;/STRONG&gt; Feature Class and a &lt;STRONG&gt;polygon&lt;/STRONG&gt; Feature Class. For the purpose of this discussion let's assume THOUSANDS of points and TWO polygons. The points have a unique identifier, and any number of points can have the same unique identifier.&lt;/LI&gt;&lt;LI&gt;Counting the number of points within the polygons is not what I'm after. I want to count the number of points with a unique ID (like barcode for example) in Polygon 1 that are also found within Polygon 2 (and also the inverse, unique detection in Polygon 1 not in 2 and unique detections in 2 not 1).&lt;/LI&gt;&lt;LI&gt;This applies to animal tracking. An animal tracklog is detected in area A and also detected in area B, based on the barcode in an attribute field.&lt;/LI&gt;&lt;LI&gt;What I first did was a spatial join, whereby the point Feature Class was the &lt;STRONG&gt;target&lt;/STRONG&gt; layer and the polygon layer the join layer. This gives a column in the point Feature Class with the Polygon_ID.&lt;/LI&gt;&lt;LI&gt;I then used Summary Statistics to produce an output table that gives me Polygon_ID, barcode and count (using PolyID as the CASE). This is great because for each unique barcode I now have a maximum of two rows, one for Polygon 1 and one for Polygon 2 (the count is largely irrelevant for my purposes). &lt;/LI&gt;&lt;LI&gt;However, using this summary table I now want to somehow &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;count the number of unique barcodes that are assigned Polygon ID 1 and Polygon ID 2&lt;/STRONG&gt;&lt;/SPAN&gt;. Any suggestions?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/21145_graphic.jpg"&gt;&lt;IMG alt="graphic.jpg" class="image-1 jive-image" height="337" src="https://community.esri.com/legacyfs/online/21145_graphic.jpg" style="height: auto;" width="246" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 04:17:08 GMT</pubDate>
    <dc:creator>AnthonyOFlaherty</dc:creator>
    <dc:date>2014-10-15T04:17:08Z</dc:date>
    <item>
      <title>Count common unique attribute values of points in &gt;1 polygon</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/count-common-unique-attribute-values-of-points-in/m-p/425636#M1330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;I have a &lt;STRONG&gt;point&lt;/STRONG&gt; Feature Class and a &lt;STRONG&gt;polygon&lt;/STRONG&gt; Feature Class. For the purpose of this discussion let's assume THOUSANDS of points and TWO polygons. The points have a unique identifier, and any number of points can have the same unique identifier.&lt;/LI&gt;&lt;LI&gt;Counting the number of points within the polygons is not what I'm after. I want to count the number of points with a unique ID (like barcode for example) in Polygon 1 that are also found within Polygon 2 (and also the inverse, unique detection in Polygon 1 not in 2 and unique detections in 2 not 1).&lt;/LI&gt;&lt;LI&gt;This applies to animal tracking. An animal tracklog is detected in area A and also detected in area B, based on the barcode in an attribute field.&lt;/LI&gt;&lt;LI&gt;What I first did was a spatial join, whereby the point Feature Class was the &lt;STRONG&gt;target&lt;/STRONG&gt; layer and the polygon layer the join layer. This gives a column in the point Feature Class with the Polygon_ID.&lt;/LI&gt;&lt;LI&gt;I then used Summary Statistics to produce an output table that gives me Polygon_ID, barcode and count (using PolyID as the CASE). This is great because for each unique barcode I now have a maximum of two rows, one for Polygon 1 and one for Polygon 2 (the count is largely irrelevant for my purposes). &lt;/LI&gt;&lt;LI&gt;However, using this summary table I now want to somehow &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;count the number of unique barcodes that are assigned Polygon ID 1 and Polygon ID 2&lt;/STRONG&gt;&lt;/SPAN&gt;. Any suggestions?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/21145_graphic.jpg"&gt;&lt;IMG alt="graphic.jpg" class="image-1 jive-image" height="337" src="https://community.esri.com/legacyfs/online/21145_graphic.jpg" style="height: auto;" width="246" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 04:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/count-common-unique-attribute-values-of-points-in/m-p/425636#M1330</guid>
      <dc:creator>AnthonyOFlaherty</dc:creator>
      <dc:date>2014-10-15T04:17:08Z</dc:date>
    </item>
  </channel>
</rss>

