Select to view content in your preferred language

Field mapping syntax (python)

2741
10
04-22-2010 07:04 AM
ChrisMathers
Deactivated User
Ok so what is the syntax for field mapping? In tools that require fields to be mapped I have figured out what most of each field needs to be, but not all of it. In this example from a Spatial Join this is one field:

A1RENUM 'A1RENUM' true true false 15 Text 0 0 ,First,#,C:\\GIS Projects\\CRW\\TrakIt_Source_RS.gdb\\Target_Data\\parce_test_FeatureToPoint.shp,A1RENUM,-1,-1


The syntax is:
NewFieldName 'NewFieldAlias' ? ? ? NewFieldLength NewFieldType ? ?, MergeRule, MergeDelimeter, SourcePath, SourceFieldName, ? , ?

NewField is the field in the table created by the tool. MergeDelimeter is # if you arent using the Join merge rule. What I want to know is what True True False, 0 0 , and -1,-1 are doing.
0 Kudos
10 Replies
SusanJones
Occasional Contributor II
Hi

I too struggled with this. Please see the following link http://forums.arcgis.com/threads/34881-replacefieldmap()-appears-broken-in-arcpy.

Susan
0 Kudos