Hi! Hoping I can get some guidance on this. I am getting a discrepancy between using a buffer and a point distance approach. What I am trying to do is to see if there are industries located within one mile of patients' homes. I have coordinates for the homes and coordinates for the industries and have mapped them in ArcMap. I then created a one mile buffer around the homes. Because I also need to calculate the distance between the homes and the industries (for all industries located within one mile of the home), I also used the Point Distance function using the Python script example described below. I used a search radius of 1 mile and the output looked great. My problem is that I was checking the output to make sure it matched up with the buffers in my map and found that it did not. For example, one home had 4 industries that fell within the 1 mile buffer (by sight) but the Point Distance analysis indicated that only 3 industries were located within a one mile radius. I am assuming the Point Distance approach is more reliable but it is bothering me that there is a clear discrepancy between the two approaches and that I may be doing something wrong. Any help or advice would be appreciated! TIA! # Description: Finds distance of each near point from each input point and outputs to a table. # import system modules import arcpy # set workspace environment arcpy.env.workspace = "C:/data/pointdistance.gdb" # set variables in_features = "police_stations" near_features = "crime_location" out_table = "crime_distance4" search_radius = "22000 Feet" # find crime locations within the search radius arcpy.PointDistance_analysis(in_features, near_features, out_table, search_radius)
... View more