Select to view content in your preferred language

Point Distance Analysis

4941
20
10-31-2011 10:05 AM
MeredithLaBeau
Emerging Contributor
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!
0 Kudos
20 Replies
NobbirAhmed
Esri Alum
...but why enter only a small number like 105 for 26?


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?
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
I think it is the other way around: places are input_features; centroids are near_features.

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.
0 Kudos
MeredithLaBeau
Emerging Contributor
Ok let me clarify, I have followed Dan's proposed steps, therefore in another state I have say 223 points (sewerage points), then I have a 10mi dissolved buffer around each of the 223 points, these buffer overlap. Now I want to generate a table to see what urban centroids and we are dealing with 13 million after they have been clipped by the buffer for this state. 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.  In addition, on overlapping sewerage sources, I would like to distinguish which urban centroid is closer. Does this make sense, cause eventually, I will introduce more urban centroids to make future predictions on these sewerage sources. So don't I still need to specify a radius when I generate a near table? And then how do I specify maximum, because there could be upwards of 10,000 cells for each sewerage point.
Thanks!
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
All right, let me try to take you through this again using your new case. Since Generate Near Table tool gives more options that you seem to need than Point Distance tool. I am going to use Generate Near Table tool in the description below.

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.
0 Kudos
NobbirAhmed
Esri Alum
When I run the point distance analysis it continually fails with a 99999 error.


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?
0 Kudos
MeredithLaBeau
Emerging Contributor
so the workaround seemed to work for all but of a few of the states we are working with. The 99999 or the 99998 error comes when trying to run the generate near table function for states with 16,676,395 or 18,639,934 urban centroid points with about 225 sewerage points. I let the sewerage point be the input features and the urban are the near features, and then I run a 10mi radius, and either I get that error or the table comes up with 0 entries once it is finished processing after an hour. I am running this data on windows 7 with 8GB RAM, and nothing else running.
I appreciate all your help!
0 Kudos
NobbirAhmed
Esri Alum
Thanks a lot Meredith. Just the final question: which version of ArcGIS you are using? 9.3 or 10.0? Servicie pack number?
0 Kudos
MeredithLaBeau
Emerging Contributor
I am running ArcGis 10.0 with service pack 3
0 Kudos
MeredithLaBeau
Emerging Contributor
any further advice, since I am still stuck trying to get two states to work...they make be exceeding Arc quota, as one has 18, 639, 000 urban cells with 1150 points to perform nearest function with....?
0 Kudos
DanLee
by Esri Regular Contributor
Esri Regular Contributor
Are you able to run Steps 1 and 2 of the workaround for these states? 

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,
0 Kudos