I want to export a feature class uisng arcpy that join with other feature class.I use the below code to join and export feature class. The problem is that field names of the result feature class have change, for example the field name must be "junction" but it changes to "schema.junction". I don't want to lose the names. Is that any solution to maintain the names?
import arcpyarcpy.env.workspace =r"D:\gisdata\test.gdb"arcpy.env.overwriteOutput ="True"fcp = "primary"fcs = "schema"fclyr=arcpy.MakeFeatureLayer_management(fcp,"fclayer")fcjoin=arcpy.AddJoin_management(fclayer,"code",fcs,"code")fccopy=arcpy.CopyFeatures_management(fclayer,"result")
أكثر...
import arcpyarcpy.env.workspace =r"D:\gisdata\test.gdb"arcpy.env.overwriteOutput ="True"fcp = "primary"fcs = "schema"fclyr=arcpy.MakeFeatureLayer_management(fcp,"fclayer")fcjoin=arcpy.AddJoin_management(fclayer,"code",fcs,"code")fccopy=arcpy.CopyFeatures_management(fclayer,"result")
أكثر...