> Script Details
Identify Features Within Distance (v. 1.a)
report inappropriate content
Mar 22 2004
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.
DESCRIPTION: This extension lets you identify features that are within a specified distance of each of a set of Input features. Begin by specifying a theme in the view which contains your INPUT features, then select a single or multiple themes containing your COMPARISON features. This extension will work through each of the Comparison features and check to see if it is within your specified distance of each Input feature. You have the option to draw graphic lines connecting each Input feature to the Comparison feature.
TWO OUTPUT TABLES: You have the option to choose either or both of two different output tables. These tables are permanent tables, saved to the hard drive, and will not be deleted when ArcView shuts down.
TABLE 1: RESULTS BY INPUT FEATURE: This first table has two fields; one containing the Input Feature ID and the other containing a count of all the Comparison features that were within your specified distance. You have the option to join this table with your Input Theme Feature Attribute table if you want.
TABLE 2: RESULTS BY COMPARISON FEATURE: This second table lists each Comparison feature within the specified distance, and you have the option to include any of 16 fields containing ID values for the features, Theme Names, Centroid and Closest Edge Coordinates, and Centroid and Closest Edge Distances and Bearings. These fields are described in more detail in the manual.
SEVERAL MEASUREMENT CHOICES: You have the option to identify features based on a variety of distance choices:
- Features in which the closest edge lies within a specified distance.
- Features in which any part of the feature lies within a specified distance.
- Features in which the entire shape lies within a specified distance.
Furthermore, for each of these three options, you have more options regarding the relationship the feature has to the distance:
- Features that are closer than the specified distance.
- Features that are farther than the specified distance.
- Features that lie within a specified range of distances.
These options are described in more detail in the manual.
ONLINE MANUAL AVAILABLE: Detailed instructions and explanations are included in "Distance By ID.doc", which is in Microsoft Word format., or on-line at:
For more ArcView Extensions and other software by the author, please visit the Jenness Enterprises software download page at: