> Script Details
Nearest Neighbour Analyst Extension
report inappropriate content
Feb 26 2002
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
Nearest Neighbour Analyst Extension (ver.1.0)
Dr. Arun K. Saraf
Department of Earth Sciences,
Indian Institute of Technology,
ROORKEE - 247 667, INDIA
Date : 02.02.2000
Email : firstname.lastname@example.org
Nearest Neighbour Analyst Extension provides the Arc View 3.1 users with the ability to perform nearest neighbour analysis on a point theme using a polygon theme as a study area.
This is the first release of Nearest Neighbour Analyst Extension. This extension has been tested thoroughly on various computers having Arc View 3.1 on Windows 95 / Windows NT and so far no error has been noticed while running it. However, improvements are being made which would be included in the next version. Nearest Neighbour Analyst Extension has been developed with Arc View 3.1 on a Pentium-300Mhz machine. If you come across any problems / suggestions please report to me to improve further.
Nearest Neighbour Analyst Extension is based on a script developed by Mr. Colin Brooks (Nearest Neighbor Script, v.1.8 available on ESRI Web site). Colin's script is originally based on a ESRI script "View.SpatialNearestNeighbor" that comes with ArcView.
In Colin's nearest neighbour script it was expected that there should be an "area" field in the FTab of the polygon theme which is used as study area in nearest neighbour analysis. If any polygon theme which did not have "area" as one of the field in the FTab then the script use to give error and this was not indicative that FTab of polygon does not have "area" as one of the field. Now, I have modified the Colin's script and added another script developed by Zhou Guoyun (Area Calculation for Polygon available on ESRI Web site) which first calculate polygon area based on the view unit and projection and then performs nearest neighbour analysis. If area field is already exist in the FTab of polygon theme then it recalculate area and then performs nearest neighbour analysis on a point theme.