<?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 Controling Merge Rule for Spatial Join in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/controling-merge-rule-for-spatial-join/m-p/437590#M34368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to perform a few dozen spatial joins (Version 10, SP3), with the join features having about 1,400 attribute columns.&amp;nbsp; I need the merge rule for the integer fields to be sum, rather than first, which is the default.&amp;nbsp; I was planning on performing these tasks using model builder, until I realized that I would need to change the merge rules one at a time in the spatial join field map dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I started thinking about a Python (2.6) script, but my skills are pretty basic, and I am really struggling to understand the FieldMap and FieldMappings objects and how to use them to control the merge rules for my 1,400 fields.&amp;nbsp; If anyone could advise and/or provide an example I would be really grateful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 18:42:07 GMT</pubDate>
    <dc:creator>PaulBoehnlein</dc:creator>
    <dc:date>2013-04-25T18:42:07Z</dc:date>
    <item>
      <title>Controling Merge Rule for Spatial Join</title>
      <link>https://community.esri.com/t5/python-questions/controling-merge-rule-for-spatial-join/m-p/437590#M34368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to perform a few dozen spatial joins (Version 10, SP3), with the join features having about 1,400 attribute columns.&amp;nbsp; I need the merge rule for the integer fields to be sum, rather than first, which is the default.&amp;nbsp; I was planning on performing these tasks using model builder, until I realized that I would need to change the merge rules one at a time in the spatial join field map dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I started thinking about a Python (2.6) script, but my skills are pretty basic, and I am really struggling to understand the FieldMap and FieldMappings objects and how to use them to control the merge rules for my 1,400 fields.&amp;nbsp; If anyone could advise and/or provide an example I would be really grateful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 18:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/controling-merge-rule-for-spatial-join/m-p/437590#M34368</guid>
      <dc:creator>PaulBoehnlein</dc:creator>
      <dc:date>2013-04-25T18:42:07Z</dc:date>
    </item>
  </channel>
</rss>

