Aarcgisprosdk10.8 Release
5ac5058d创建于 2020年2月21日历史提交
文件最后提交记录最后更新时间
6 年前
6 年前
9 年前
6 年前
6 年前
README

Geoprocessing field mapping

This sample demonstrates how to set up field mapping for tools such as Merge, Table to Table, Feature Class to Feature Class, and Append.
Language:              C#, VB
Subject:               Geoprocessing
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5

Resources

Usage

  1. Provide local data. You need to update the code to reference your dataset and its fields. You also need to update the path to the output table to the location where you want it created.
  2. Compile and run the project.

Additional information

In this sample, a table containing United States (U.S.) census data is converted to a new table. One of the input attributes in the input table is a text field, STFID. This 15-digit value is a unique identifier for all census blocks for the U.S. The value can be broken into four components. The first two digits provide the state code, the next three indicate the county, the following six identify the census tract, and the last four identify the census block.
 
The value 360899912001006 represents the census block (1006) containing the State University of New York at Potsdam in upstate New York (36), in census tract 991200 of the county of St. Lawrence (089). This sample converts this table and also creates a field, TRACTID, because the input data only has the STFID attribute. To do this, the GPFieldMapping object is initialized using the AddTable method to enter the input table. The default IGPFieldMapping object is then modified by creating an IGPFieldMap object, populating its properties, and adding them to the IGPFieldMapping object.

See Also

Mapping fields


Licensing

Development licensing Deployment licensing
ArcGIS Desktop Basic ArcGIS Desktop Basic
ArcGIS Desktop Standard ArcGIS Desktop Standard
ArcGIS Desktop Advanced ArcGIS Desktop Advanced
Engine Developer Kit Engine