-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Programming ArcGIS with Python Cookbook, Second Edition
By :
Up until this point in the chapter, we've covered how to use Python with the ArcGIS REST API to access ArcGIS Server services. Now, we're going to switch gears and go back into the ArcPy module and discuss the FieldMap and FieldMappings classes.
A common GIS operation is to merge several disparate datasets into a single dataset of a larger area. Often, the fields in the datasets to be merged will be the same and there won't be any problems. However, there will be times when the fields of the various datasets do not match. In this case, you will need to map the relationship between fields in one dataset to fields in another dataset.

The preceding diagram displays the relationship between the various ArcPy classes that are used to define field mapping. A FieldMap object contains a field definition and a list of input fields from one or more tables, or feature classes that provide the values for the field. Each FieldMap object that you create is then...
Change the font size
Change margin width
Change background colour