Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a point layer and want to know the distance of nearest point of current layer for each point in the layer.

I found some tools in ArcToolbox about it , but they need two layers for input and they can find the distance of nearest object between that two layers. I tried to use them and i added my point layer in that tools ( Same layer for both inputs ) but they couldn't work properly because they found same point in second layer and gave me zero distance for every points.

How can i find distance of nearest point for each point in my layer ? It is better for me to find an answer in ArcToolbox . Something such as Tools or Models.

Thanks alot

share|improve this question
    
I have got the same problem, and i tried out the theory but it gives me exactlly the same output with the inputs. I want to connect each points by thier nearest distance, i made a distance id but the lines are not really structured, they are overlapped and crossed each other. any help is wellcome please !!! –  user26705 Feb 7 at 16:42

1 Answer 1

up vote 5 down vote accepted

You don't say what license or version you are using, but assuming you have ArcInfo, it is possible to use the "Near" geoprocessing tool to find the nearest object in the same layer.

From the tool help page:

The same dataset can be used as both Input Features and Near Features. When an input feature's nearest feature is itself (NEAR_DIST is 0), this feature is ignored from the calculation and the next nearest feature is searched.

If there is a problem with this method then say so in the comments, but in theory this should work for what you want to do.

share|improve this answer
    
Thank you Stev_k. It really works. –  hvaezi Jan 9 '12 at 11:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.