The spatial reference code 32165 does not provide the right values so I'm hoping to use a .prj file instead for the spatial reference. In the script below is there a way to use "sr" (spatial reference) as a parameter in the arcpy.management.CalculateGeometryAttributes command line?
import arcpy
arcpy.env.overwriteOutput = 1
outrastertopoint = r"S:/General-Offices-GO-Trans/SLR-Mapping/GIS_Projects_2018/Smart_T_Line_Model/geodata/TEST_RASTERTOPOINT_TEST2.gdb/"
arcpy.env.workspace = outrastertopoint
fieldName1 = "X_coord"
fieldPrecision1 = 9
fieldAlias1 = "longitude"
fieldName2 = "Y_coord"
fieldPrecision2 = 9
fieldAlias2 = "latitude"
featureClassList = arcpy.ListFeatureClasses()
for featureClass in featureClassList:
arcpy.management.CalculateGeometryAttributes(featureClass, "X_coord POINT_X;Y_coord POINT_Y", None, None, "PROJCS['NAD 1983 UTM Zone 15N 1_1',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-93.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Feet',0.3048]]")