<?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: Model Builder: Calculating Attribute in Polygon Based on Point Values within in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056768#M25540</link>
    <description>&lt;P&gt;Did that, as attached screen shot, added field GSTEST, which came out as NULL...&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 17:15:46 GMT</pubDate>
    <dc:creator>KJVersar</dc:creator>
    <dc:date>2021-05-11T17:15:46Z</dc:date>
    <item>
      <title>Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056679#M25526</link>
      <description>&lt;P&gt;I am trying to iterate through a set of polygons and for each polygon select the points in another feature class which fall within.&amp;nbsp; Once those points are selected I want sum the values of one of the point attributes and add that sum to an attribute field in the polygon.&amp;nbsp; Everything seems to work except if no point falls within the polygon instead of 0 the field in the polygon attribute is filling to 1.&amp;nbsp; I have tried various preconditions and the field value Null is set to 0 but this keeps occurring. Attached is a copy of the current model.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056679#M25526</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056704#M25528</link>
      <description>&lt;P&gt;Can you not achieve the same without a model and use a Spatial Join, with a field mapping merge rule set to 'SUM' of that particular field?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm" target="_blank"&gt;Spatial Join (Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056704#M25528</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056707#M25529</link>
      <description>&lt;P&gt;I'm looking to total an attribute field in the selected point feature class which has a count number in it, so not just summing the number of points that fall within the polygon.&amp;nbsp; For instance there may be two points within the polygon, one with a count of 1 and one with a count of 3.&amp;nbsp; I want to fill in the polygon attribute with the value of 4.&amp;nbsp; This model successfully does that but when there are no points within the polygon it is filling in the attribute field as 1 instead of 0.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056707#M25529</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T15:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056712#M25530</link>
      <description>&lt;P&gt;Yes, you can control how a field is mapped in the spatial join.&amp;nbsp; As you say, the default would be to return a JOIN_COUNT, JOIN_FID etc. and the other fields you have specified in the field mapping.&lt;/P&gt;&lt;P&gt;Of those other fields, you would have the attribute of the first coincident point found, BUT you can control how this is done.&lt;/P&gt;&lt;P&gt;Look at the field map parameter in the tool, and the merge rule dropdown.&lt;/P&gt;&lt;P&gt;from the link I supplied:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Merge rules specified in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="uicontrol"&gt;Field Map of Join Features&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;parameter only apply to attributes from the join features and when more than one feature is matched to a target feature (when Join_Count &amp;gt; 1). For example, if three features with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="usertext"&gt;DEPTH&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;attribute values of 15.5, 2.5, and 3.3 are joined, and a merge rule of Mean is applied, the output field will have a value of 6.1. Null values in join fields are ignored for statistic calculation. For example, 15.5, &amp;lt;null&amp;gt;, and 2.5 will result in 9.0 for Mean and 2 for Count.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056712#M25530</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056731#M25531</link>
      <description>&lt;P&gt;I see what you mean, so:&lt;/P&gt;&lt;P&gt;Target Features: Polygon&lt;/P&gt;&lt;P&gt;Join Features: Point&lt;/P&gt;&lt;P&gt;Output fields: Polygon attribute field selected&lt;/P&gt;&lt;P&gt;Source: Merge Rule=Sum, Point attribute field to sum selected&lt;/P&gt;&lt;P&gt;This configuration gives me all NULL values in the polygon field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056731#M25531</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T16:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056737#M25532</link>
      <description>&lt;P&gt;can you screenshot the tool parameters and the output?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056737#M25532</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T16:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056739#M25533</link>
      <description>&lt;P&gt;TOT_GS is the field I'm trying to fill, with ART_COUNT from the GS point feature class.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056739#M25533</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T16:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056742#M25534</link>
      <description>&lt;P&gt;the resolution of that screenshot prevents anyone apart from the NSA reading it unfortunately.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056742#M25534</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056745#M25535</link>
      <description>&lt;P&gt;Ha, hopefully this is better?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056745#M25535</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T16:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056746#M25536</link>
      <description>&lt;P&gt;no, forget about ART_COUNT, just use TOT_GS with a SUM merge rule, otherwise a field map is created of the sum of ART_COUNT instead of TOT_GS (which is NULL + NULL + ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056746#M25536</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056749#M25538</link>
      <description>&lt;P&gt;But I do want to Sum ART_COUNT from the GS table and put the Sum in the TOT_GS field. TOT_GS is just 0s right which needs the sum of ART_COUNT of all intersecting GS points. Does that make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056749#M25538</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056763#M25539</link>
      <description>&lt;P&gt;OK to save this getting muddled just do this:&lt;/P&gt;&lt;P&gt;add a new field using the + icon -&amp;gt; name the field whatever you want. on the right hand side Add Source and set that to ART_COUNT and click 'add selected' set the merge rule to SUM. keep all the other fields as original default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then run&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 17:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056763#M25539</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056768#M25540</link>
      <description>&lt;P&gt;Did that, as attached screen shot, added field GSTEST, which came out as NULL...&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 17:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056768#M25540</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056777#M25541</link>
      <description>&lt;P&gt;you may accidentally have a selection on a layer?&lt;/P&gt;&lt;P&gt;Should be One to one not one to Many? that seems like the issue.&lt;/P&gt;&lt;P&gt;If doesn't work,&amp;nbsp; just try with all the defaults, and don't add a new field or change anything except for changing the merge rule.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 17:33:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056777#M25541</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-11T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder: Calculating Attribute in Polygon Based on Point Values within</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056784#M25542</link>
      <description>&lt;P&gt;Ahhh, I think it was the one to many that was the issue.&amp;nbsp; Thought to use that since there are multiple GS points within a cell but it looks like I don't need it.&amp;nbsp; Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 17:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-calculating-attribute-in-polygon/m-p/1056784#M25542</guid>
      <dc:creator>KJVersar</dc:creator>
      <dc:date>2021-05-11T17:45:13Z</dc:date>
    </item>
  </channel>
</rss>

