I have a python script that I am accepting parameters from a GP Service
The creation of the point works fine...
BUT regardless of what I specify for an XY if places the points off the coast of Ecuador
The FC is in UTM Zone 17N....
It does not matter if I hard code (-75.5, 38.5) or (1221066.25, 4014421.79) it still drops the point in the same location.
varItem = arcpy.GetParameterAsText(0)
varXCoord = arcpy.GetParameterAsText(4)
varYCoord = arcpy.GetParameterAsText(5)
row_values = [( varItem, varXCoord ,varYCoord)]
print(row_values)
cursor = arcpy.da.InsertCursor(fc,['Item', 'PublicPrivate', 'SHAPE@Y', 'SHAPE@X'])
for row in row_values:
cursor.insertRow(row)
edit.stopOperation()
edit.stopEditing(True)