AnsweredAssumed Answered

What is distance in PointDistance_analysis

Question asked by bpdurand on Feb 22, 2011
Latest reply on Feb 23, 2011 by bpdurand
My apologies if this is not in the right forum or if it is a very basic question but I have been working on this all afternoon and it is driving me crazy. What would be causing the following script to give me incorrect results:

import arcpy
arcpy.env.workspace = "C:\Documents and Settings\bpdurand\My Documents\ArcGIS\Default.gdb"
arcpy.PointDistance_analysis("address","hospital","howfar")

I thought that it would calculate the distance in miles between the points in the address and the point for the hospital in miles. However it is giving me answers such as 0.104308 and 0.037853. I have changed the display units in properties->general for the layer (it was not set to miles) to miles but it did not help.

Any hints would be appreacited.

What is really frustrating is that I can easily do what I want interactively but I can not do it in batch.

Thank you!

Outcomes