Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

An authority I am working with would like their Hydrants, a point shapefile, to be renumbered based on their location. I am looking for any python script that would help me A. Find the next closest Hydrant B. Generate a number C. Increment that number for all hydrants.

I am using ArcGIS Desktop version 10.0.

share|improve this question

closed as unclear what you're asking by PolyGeo, Fezter, BradHards, Get Spatial, Devdatta Tengshe Oct 2 '13 at 5:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

In general what you seem to be asking for is not possible: it will not usually be the case that the nearest neighbors of each hydrant can have numbers close to one another. (When that's possible, the hydrants basically have to be in a line and numbered sequentially from one end to the other--that's great for a one-street town, but becomes problematic in larger jurisdictions!) Do you have additional criteria in mind for making the necessary compromises in finding a numbering that works for most hydrants? – whuber May 2 '12 at 22:13
Thanks for your time and information. I will continue to look for a work around. – Justin Zimmerman May 3 '12 at 15:09
It could be possible by starting from an arbitrary point and then choosing the closest hydrant using the Near (Analysis), then exclude the first one and look for the second one, and so on. You could define some zones if you want the hydrants numbered in one area first. – Arash Oct 2 '13 at 0:04