<?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: Field Mapping for Batch Spatial Join in Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414418#M14009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to do the same thing: Get the count of the number of points within each individual grid square in my fishnet for a number of point files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run into this problem a few times and never been able to figure it out. I would expect that if I I want to spatially join a number of layers to one target layer, I would get the fields: [join_count], [join_count1],[joint_count2]... in the layer that I'm sequentially joining. But the model never does this and ends with me being frustrated and having to do it in many separate batch processes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution I'm trying right now is to do the spatial join. Then do an ordinary table join- original target layer to the spatial join output using a unique row ID. I then update the field in the target table with the [join_count] field in the output and then remove the table join. This seems to work, because I'm only ever dealing with one [join_count] field. I would think I could do this with as many point tables or selections as I need. It may also make for a cleaner, hassle free, end product since I never have to remove extraneous fields from the spatial join output table. I would like it to work using the model builder batch processing (stating that the variable contains a list of values) but have not been able to get it to work for some reason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Nov 2010 19:01:43 GMT</pubDate>
    <dc:creator>ColinMurray</dc:creator>
    <dc:date>2010-11-06T19:01:43Z</dc:date>
    <item>
      <title>Field Mapping for Batch Spatial Join in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414416#M14007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Model Builder, I've added a Spatial Join process.&amp;nbsp; I want to Spatial Join six separate point layers to a single polygon layer with match option of contains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I want to Spatial Join all six point layers to the polygon layer at the same time, I've gone ahead and created a Variable from the Join Features of the Spatial Join tool.&amp;nbsp; In the newly created Variable, I can add all six separate point layers as a batch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I'm interested in the number of points that fall into each polygon.&amp;nbsp; This is typically generated with a default [Join_Count] field when Spatial Join is executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I am interested in the count of six separate layers, I want six separate count fields.&amp;nbsp; Thus, I tried to modify the Field Map of the Join Features for the batch.&amp;nbsp; The default [Join_Count] field didn't show up in the Field Map -- fine.&amp;nbsp; But I did add the new fields in the Field Map, set their field Type (to Long Integer), set the length of those long integers, and set the Merge Rule to "Count".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the problem: when I validate the model, my added "Count" fields (which, take the format: [I_1W], [I_2W], [I_3W], etc.) disappear.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I add some count fields that correspond to the six separate spatial joins performed by this batch in Model Builder?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jun 2010 19:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414416#M14007</guid>
      <dc:creator>MatthewToro</dc:creator>
      <dc:date>2010-06-08T19:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping for Batch Spatial Join in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414417#M14008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find a solution to this issue?&amp;nbsp; I'm also interested in this same process, and have tried something similar, but with unsuccessful results.&amp;nbsp; I created a model that had two processes per join, one being the spatial join, and a second that would delete extra attribute fields before moving onto the next spatial join.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run it with only two spatial joins, the resulting shapefile produces 'count' fields with the correct values, however, when I run it with three or more spatial joins, the count fields values are incorrect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 12:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414417#M14008</guid>
      <dc:creator>IanKidner</dc:creator>
      <dc:date>2010-09-21T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping for Batch Spatial Join in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414418#M14009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to do the same thing: Get the count of the number of points within each individual grid square in my fishnet for a number of point files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've run into this problem a few times and never been able to figure it out. I would expect that if I I want to spatially join a number of layers to one target layer, I would get the fields: [join_count], [join_count1],[joint_count2]... in the layer that I'm sequentially joining. But the model never does this and ends with me being frustrated and having to do it in many separate batch processes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution I'm trying right now is to do the spatial join. Then do an ordinary table join- original target layer to the spatial join output using a unique row ID. I then update the field in the target table with the [join_count] field in the output and then remove the table join. This seems to work, because I'm only ever dealing with one [join_count] field. I would think I could do this with as many point tables or selections as I need. It may also make for a cleaner, hassle free, end product since I never have to remove extraneous fields from the spatial join output table. I would like it to work using the model builder batch processing (stating that the variable contains a list of values) but have not been able to get it to work for some reason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 19:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414418#M14009</guid>
      <dc:creator>ColinMurray</dc:creator>
      <dc:date>2010-11-06T19:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Mapping for Batch Spatial Join in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414419#M14010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the exact same problem in Model Builder. I need to do multiple spatial joins of different point layers to a single polygon layer to obtain counts. I've tried all of the suggestions in this forum and have been trying to find a solution for a few days with no luck. I'm pretty much at my wits end. Did anyone ever find a good way to do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 00:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/field-mapping-for-batch-spatial-join-in-model/m-p/414419#M14010</guid>
      <dc:creator>DanRubado</dc:creator>
      <dc:date>2010-12-03T00:36:13Z</dc:date>
    </item>
  </channel>
</rss>

