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 nearFc = sys.argv distance = sys.argv arcpy.Near_analysis(inFc, nearFc, distance, "Geodesic")