I am trying to run a distance analysis on point features to centroids based on a certain class of land area. More specifically, I have all the urban rasters configured to centroid points. Then with another layer of points that are places I would like to analysis the influence of urban area on each of these points, which urban land contributes to each due to the distance, with an obvious cutoff of no more that 15 miles. When I run the point distance analysis it continually fails with a 99999 error. Not sure how to proceed to actually use this tool, does anyone have any suggestions, I would appreciate some advice!

Which version of ArcGIS you are using?

## Attachments

I used 15 miles as an example (got it from your first post). If you leave out the search radius (blank) then distances to all places will be calculated.

Use Generate Near Table tool. Uncheck Find only closest feature and enter the number in the Maximum number of closest matches parameter.

Without the centroid data, we can't reproduce/investigate the problem. You can try this workaround:

1. Run Buffer tool with 15 miles distance and the ALL option for Dissolve Type. You should get one multipart polygon.

2. Run Clip tool to clip the centroid points by the buffer polygon.

3. Run Point Distance or Generate Near tool using the places and the clipped centroid points.

Hope you can run through these successfully.

Thanks

How have you set your Find only closest feature parameter? Make sure it is unchecked. Then enter a number for the last parameter Maximum number of closest matches - enter maximum of the numbers, such as, enter 105 from 26, 100, 105.

Enter the largest of possible numbers you expect. You can enter a very large number if you wish. Just remember that a very large number may take longer for the tool to run. So, be within necessary maximum.

Also, don't enter a radius at this point. Radius takes precendence over the last parameter. You will need to combine this step with the steps proposed by Dan.

So, urban land use centroids are your input features and various places are your near point, right?

If you want distances from a place to all the input points (clipped by a buffer), you only need to uncheck that box. The tool will generate 26 x N records, where N is the number of input centroid points.

The Search Radius controls how far you want to look. Since the buffer/clip process has already given you centroids within the desired radius, your don't need to specify the search radius (note: you mentioned 15 miles, but your buffer distance is 10miles. Should it be 15miles?).

You specify a "Max number of cloeset match" ONLY IF you are not interested in distances for all centroid points, but a certain number, say 5 or 10.

Thanks!

Your data:

For a particular state you have 223 sewerage points. Let's call it sewerPts.

And you have millions of urban centroid points across many states. Let's call it urbanPts.

Your goal:

"I want to know which ones are closest to that sewerage point within a 10 mile radius, outside of 10 mi I don't consider it".

Normally you should be able to use the Generate Near Table tool, enter 10 miles as the Search Distance, and uncheck the box "Find only closest matches" (unless you only want to find one closest near point to one input point?). The result should contain distances from each sewer point to all those unban points that are within 10miles to the sewer point. If an urban point is beyond 10 miles from a sewer point you won't get a record for it.

If the above process gives you the 99999 error, the workaround I proposed earlier should give you equivalent result. So, here is the updated workaround:

1. Run Buffer tool on sewerPts with 10 miles distance and the ALL option for Dissolve Type. You should get one polygon that contains multiparts. The overlapping boundaries should be dissolved. Let's call it buffer10miles.

2. Run Clip tool to clip urbanPts by buffer10miles. Let's call the result urbanPts_in10miles. This result is equivalent to what would be found by a Search Distance of 10 miles from points in sewerPts to points in urbanPts. So now you have a subset of the original urbanPts, which I hope gives a better chance to run through the next step.

3. Run Generate Near Table tool using sewerPts as input features and urbanPts_in10miles as near features. Enter 10 miles as the Search Distance and uncheck "Find only closest matches". This should give you the desired result. Let's call it sewerPts_urbanPts_nearTable.

You said "In addition, on overlapping sewerage sources, I would like to distinguish which urban centroid is closer". I am not sure if you meant to reverse the analysis - to generate near table from urbanPts to sewerPts within the distance? If an urbar point finds multiple sewer points, you can use the Summary Statistics tool to get the minimum NEAR_DIST value and the corresponding sewer point FID.

I am not very clear about your future prediction part. But unless you want to change 10 miles to a different value, you should run the same process even you include more urban centroid points.

Regarding the "Maximum number of closest matches" option, do you want to find only a certain max number (say 100 or 500) of urban centroid points from each sewer point? If not, don't enter anything here.

I would like to suggest that you test the process by small sample datasets - select 5 sewer points, use a smaller distance so that a small number of urban centroid points are found, and review the table and try to understand and verify the result is expected. Then apply the process to the real data size.

Hope that helps.

I need to repro the 999999 error you have seen with Point Distance. Could you help by clarifying? Just to be sure - you have few input points (26?)and more than a million near points, right? Which version of ArcGIS you are using? Which OS you are working on?

I appreciate all your help!

Step 1: Buffer the 1150 points with 10 miles and the ALL option; did you get one buffer with multiparts?

Step 2: Clip the urban cell points by the buffer. Are the 18, 639, 000 urban cells the Clipped result? If not, how many points did you get here?

It may be better that we follow up with investigation outside of the forum. You may contact me at dlee@esri.com. We can give you a site for you to upload your data.

Thanks,

I will email you. Thanks