Created a script for Near Analysis, but my distance field, whenever calculated produces values from the Geographic Coordinate System that my features were produced through. I read that if you set the method to geodesic, it will instead let you do miles which is what I want. However, when I try doing that, I get an error. Is there something wrong with the way I wrote my code?
This is it:
import arcpy
import sys
inFc = sys.argv[1]
nearFc = sys.argv[2]
distance = sys.argv[3]
arcpy.Near_analysis(inFc, nearFc, distance, "Geodesic")