<?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 select max value per feature location for overlapping point features in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142005#M4826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a "grid" (vector grid) of evenly spaced points for ocean alkalinity. At every location in the grid there is a stack of up to 15 points with identical coordinates but different values for their depth and alkalinity attributes. I need to join the alkalinity values for the deepest points at each location to another point layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I create a selection that will grab just the deepest points at each location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not a simple get max value from the entire layer problem, I need the points with the max depth value at each of 6000 point stacks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried various versions of this: "depth" = (SELECT MAX("depth") FROM INPUT) in the select by attribute window but get a bunch of syntax errors. I'm pretty sure I also need some other selection attribute like a unique coordinate ID so I'm picking the max from each stack and not just the whole data set. I have that ID created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 20:34:03 GMT</pubDate>
    <dc:creator>DavidMedeiros</dc:creator>
    <dc:date>2013-05-09T20:34:03Z</dc:date>
    <item>
      <title>select max value per feature location for overlapping point features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142005#M4826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a "grid" (vector grid) of evenly spaced points for ocean alkalinity. At every location in the grid there is a stack of up to 15 points with identical coordinates but different values for their depth and alkalinity attributes. I need to join the alkalinity values for the deepest points at each location to another point layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I create a selection that will grab just the deepest points at each location?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not a simple get max value from the entire layer problem, I need the points with the max depth value at each of 6000 point stacks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried various versions of this: "depth" = (SELECT MAX("depth") FROM INPUT) in the select by attribute window but get a bunch of syntax errors. I'm pretty sure I also need some other selection attribute like a unique coordinate ID so I'm picking the max from each stack and not just the whole data set. I have that ID created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 20:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142005#M4826</guid>
      <dc:creator>DavidMedeiros</dc:creator>
      <dc:date>2013-05-09T20:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: select max value per feature location for overlapping point features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142006#M4827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If all the points in your 'point stack' have a common ID (i.e., "STACK_ID"), try using the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/"&gt;Summary Statistics&lt;/A&gt;&lt;SPAN&gt; tool.&amp;nbsp; You'll find the MAX of the DEPTH field and your Case Field is your STACK_ID.&amp;nbsp; The result will be a table that will have a record for each unique STACK_ID with the maximum depth.&amp;nbsp; What it won't have is the alkalinity field value for that point.&amp;nbsp; But you do have enough information (the STACK_ID and the DEPTH) to find that unique point using an attribute query.&amp;nbsp; The way I'd do this is to create a new field on the point feature class that concatenates STACK_ID and DEPTH.&amp;nbsp; This would be a text field.&amp;nbsp; See this &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2010/08/30/concatenate/"&gt;blog post&lt;/A&gt;&lt;SPAN&gt; on how to concatenate field values.&amp;nbsp; If you can create this field on your point feature class, you can also create it on the output of Summary Statistics.&amp;nbsp; Then you have a common key field to use in joins and relates.&amp;nbsp; You could use &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Join_Field/001700000065000000/"&gt;Join Field&lt;/A&gt;&lt;SPAN&gt; to join alkalinity from the point features to the statistics table for example.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have an advanced license, you could use the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Sort/001700000057000000/"&gt;Sort &lt;/A&gt;&lt;SPAN&gt;tool to sort your points on STACK_ID and DEPTH (descending) , then use Summary Statistics with the FIRST statistic to find the alkalinity value.&amp;nbsp; STACK_ID would be your Case field.&amp;nbsp; This'll return the first value of alkalinity found for each unique STACK_ID.&amp;nbsp; Since the table is sorted, the first occurrence is the deepest point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's probably a better way to do this using an SQL query, but I can't think of it right now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 21:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142006#M4827</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2013-05-09T21:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: select max value per feature location for overlapping point features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142007#M4828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If all the points in your 'point stack' have a common ID (i.e., "STACK_ID"), try using the &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/" rel="nofollow" target="_blank"&gt;Summary Statistics&lt;/A&gt; tool.&amp;nbsp; You'll find the MAX of the DEPTH field and your Case Field is your STACK_ID.&amp;nbsp; The result will be a table that will have a record for each unique STACK_ID with the maximum depth.&amp;nbsp; What it won't have is the alkalinity field value for that point.&amp;nbsp; But you do have enough information (the STACK_ID and the DEPTH) to find that unique point using an attribute query.&amp;nbsp; The way I'd do this is to create a new field on the point feature class that concatenates STACK_ID and DEPTH.&amp;nbsp; This would be a text field.&amp;nbsp; See this &lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2010/08/30/concatenate/" rel="nofollow" target="_blank"&gt;blog post&lt;/A&gt; on how to concatenate field values.&amp;nbsp; If you can create this field on your point feature class, you can also create it on the output of Summary Statistics.&amp;nbsp; Then you have a common key field to use in joins and relates.&amp;nbsp; You could use &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Join_Field/001700000065000000/" rel="nofollow" target="_blank"&gt;Join Field&lt;/A&gt; to join alkalinity from the point features to the statistics table for example.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;If you have an advanced license, you could use the &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Sort/001700000057000000/" rel="nofollow" target="_blank"&gt;Sort &lt;/A&gt;tool to sort your points on STACK_ID and DEPTH (descending) , then use Summary Statistics with the FIRST statistic to find the alkalinity value.&amp;nbsp; STACK_ID would be your Case field.&amp;nbsp; This'll return the first value of alkalinity found for each unique STACK_ID.&amp;nbsp; Since the table is sorted, the first occurrence is the deepest point.&lt;BR /&gt;&lt;BR /&gt;There's probably a better way to do this using an SQL query, but I can't think of it right now.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that will work. I already have the unique ID for each stack (concatenated X and Y coordinates) so that as the Case Field in the summary statistics tool should give me what I need to join back to the data to get the max points. I'll try it with the student I'm helping when we meet next week and will report back if this was the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 16:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142007#M4828</guid>
      <dc:creator>DavidMedeiros</dc:creator>
      <dc:date>2013-05-10T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: select max value per feature location for overlapping point features</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142008#M4829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hunted around a bit for the SQL... this could be done by using GROUP BY in SQL (something like "Select MAX(DEPTH) GROUP BY STACK_ID").&amp;nbsp; Unfortunately, GROUP BY queries aren't supported on file geodatabases, only enterprise databases (i.e., SQL Server, Oracle, etc.).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 16:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-max-value-per-feature-location-for/m-p/142008#M4829</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2013-05-10T16:21:16Z</dc:date>
    </item>
  </channel>
</rss>

