ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Transfer Field Domain Descriptions (Environment setting)

  • Usage notes
  • Dialog syntax
  • Scripting syntax

This geoprocessing environment controls whether output shapefiles and dBASE (.dbf) tables will have fields added containing domain and subtype descriptions, in addition to fields containing domain and subtype codes. This setting is only relevant when the input to a geoprocessing tool is a geodatabase feature class or table with domains and subtypes defined. By default, only domain and subtype codes are included in shapefile or dBASE (.dbf) output.

This geoprocessing environment is useful because shapefiles and dBASE (.dbf) tables do not support advanced features such as attribute field domains and subtypes; but some workflows require the output to be one of these formats, and the domain and subtype description information is necessary to maintain.

Learn more about other limitations when using shapefile output

Usage notes

  • If this geoprocessing environment is used, the output shapefile or dBASE (.dbf) table will have additional fields added to the output. If the input has a subtype field, the output will have one field for the subtype code (named after the original field) and one field for the subtype description (named after the original field, and prefixed by d_, for description). If the input has attribute domains, the output will have one field for each of the fields with a domain (named after the original field), containing domain codes, and one field for each of the fields with a domain (named after the original field, and prefixed by d_, for description), containing domain descriptions.
  • When viewing the attribute table or identifying a feature of a geodatabase feature class or table with subtypes and domains defined, the attributes that are presented are the domain and subtype descriptions (not codes).
  • If the information contained in subtype and domain descriptions is necessary, and the output of the operation will be a shapefile or a dBASE (.dbf) table, use this environment setting to ensure that domain and subtype descriptions are added to the output. If both of these conditions are not pertinent, then this environment setting should not be used.
  • Transferring field domain descriptions to the output of the geoprocessing operation will take more time (slower performance) than transferring only the domain and subtype codes. Only use this environment setting if domain and subtype descriptions are specifically needed in the output.

Dialog syntax

  • Unchecked—The output shapefile or dBASE (.dbf) table will not have additional fields containing subtype and domain descriptions. This is the default.
  • Checked—The output shapefile or dBASE (.dbf) table will have additional fields containing subtype and domain descriptions.

Scripting syntax

arcpy.env.transferDomains = transfer_domains

transfer_domainsExplanation

False

The output shapefile or dBASE (.dbf) table will not have additional fields containing subtype and domain descriptions. This can also be set using the NOT_TRANSFER_DOMAINS keyword. This is the default.

True

The output shapefile or dBASE (.dbf) table will have additional fields containing subtype and domain descriptions. This can also be set using the TRANSFER_DOMAINS keyword.

transferDomains syntax
# Name: exportToShapefile.py
# Purpose: Export a geodatabase feature class to a shapefile, include domain and subtype descriptions

# Import system modules
import arcpy
from arcpy import env


# Set environment settings
env.workspace = "C:/data"
env.transferDomains = True
# the equivalent with a keyword is
# env.transferDomains = "TRANSFER_DOMAINS"

# Set local variables    
inFeatures = "Habitat_Analysis.gdb/vegtype"
outLocation = "Shapefiles"
outName = "Vegetation.shp"

arcpy.conversion.FeatureClassToFeatureClass(inFeatures, outLocation, outName)

Related Topics

  • A quick tour of attribute domains
  • A quick tour of subtypes
  • Geoprocessing considerations for shapefile output
  • An overview of geoprocessing environments
  • Environment levels and hierarchy
  • Setting geoprocessing environments
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal