<?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: How to set Geoprocessing field_mapping parameter in SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/775055#M826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a workaround I build a function that wil convert a list of my own FieldMapping Classes to a correct formatted string for the Geo processing parameter.&lt;/P&gt;&lt;P&gt;The parameters from the geo processing history gave me a clue on how to format the field mappings to text myself.&lt;/P&gt;&lt;P&gt;A decent ESRI solution would be preferable though. Because building the text on your own leaves room for errors, and you need to know the fields of both feature classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2017 10:31:49 GMT</pubDate>
    <dc:creator>GwenRoyakkers</dc:creator>
    <dc:date>2017-11-14T10:31:49Z</dc:date>
    <item>
      <title>How to set Geoprocessing field_mapping parameter in SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/775054#M825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to set the fieldmappings parameter for&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/spatial-join.htm"&gt;spatial-join&lt;/A&gt;&amp;nbsp;(or another geoprocessor) from the sdk?&lt;/P&gt;&lt;P&gt;In Arcobjects you would use the&amp;nbsp;IGPFieldMapping object and in Python the&amp;nbsp;&lt;SPAN class="" style="color: #4d4d4d;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;FieldMappings object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;I Only want/need 1 field from join_features.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;I can't find anything about this topic in the SDK documentation, and the community samples only use simple string based parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Is there a renamed object that I'm missing, or is this functionality missing from ArcGIS Pro .Net SDK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Removing/renaming the unused fields afterwards is not an acceptable workaround (There are way to many fields for this, and removing a field from the Geoprocessing framework is a lot slower than ArcObjects).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 10:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/775054#M825</guid>
      <dc:creator>GwenRoyakkers</dc:creator>
      <dc:date>2017-11-13T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Geoprocessing field_mapping parameter in SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/775055#M826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a workaround I build a function that wil convert a list of my own FieldMapping Classes to a correct formatted string for the Geo processing parameter.&lt;/P&gt;&lt;P&gt;The parameters from the geo processing history gave me a clue on how to format the field mappings to text myself.&lt;/P&gt;&lt;P&gt;A decent ESRI solution would be preferable though. Because building the text on your own leaves room for errors, and you need to know the fields of both feature classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 10:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/775055#M826</guid>
      <dc:creator>GwenRoyakkers</dc:creator>
      <dc:date>2017-11-14T10:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Geoprocessing field_mapping parameter in SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/1084337#M6961</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/22238"&gt;@GwenRoyakkers&lt;/a&gt;&amp;nbsp;Any chance to get an example code on how you have resolved it?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 06:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-set-geoprocessing-field-mapping-parameter/m-p/1084337#M6961</guid>
      <dc:creator>ole1986</dc:creator>
      <dc:date>2021-07-30T06:13:04Z</dc:date>
    </item>
  </channel>
</rss>

