フィーチャ レイヤの作成

import arcpy
try:
    fc = r"D:\Student\PYTH\Database\SanDiego.gdb\Climate"
    layer_name = "temp_layer"
    result = arcpy.MakeFeatureLayer_management(fc, layer_name)

    featurelayer = result.getOutput(0)


    # Create a describe object
    desc = arcpy.Describe(layer_name)

    # If a feature layer, continue
    if desc.dataType == "FeatureLayer":

        # Create a fieldinfo object
        fieldInfo = desc.fieldInfo

        index = 0

        # Use the count property to iterate through all the fields
        while index < fieldInfo.count:
            # Print fieldinfo properties to the screen
            #
            print "Field Name: " + fieldInfo.getFieldName(index)
            print "\tNew Name:   " + fieldInfo.getNewName(index)
            print "\tSplit Rule: " + fieldInfo.getSplitRule(index)
            print "\tVisible:    " + fieldInfo.getVisible(index)
            index += 1

except arcpy.ExecuteError as e:
    print str(e).decode("UTF-8")