Generate Near Table 3D (3D Analyst Tools)
Summary
Calculates distances and other proximity information between features in one or more feature classes or layers.
Unlike the Near 3D tool, which modifies the input, this tool writes results to a new table and supports finding more than one near feature. It also gives the option of outputting points or lines to represent the nearest from and to locations and the lines connecting them.
Usage
The output table will contain the following fields:
IN_FID—The Object ID of the input feature.NEAR_FID—The Object ID of the nearest feature.NEAR_DIST—The horizontal distance from the input feature to the near feature. The value is in the linear unit of the input feature's coordinate system.NEAR_DIST3—The 3D distance from the input feature to the near feature. The value is in the linear unit of the input feature's coordinate system.NEAR_FC—The catalog path to the feature class that contains the near feature. This field is only added to the output table if multiple Near Features parameter values are specified.NEAR_RANK—An integer value ranking all near features based on their proximity to an individual input feature. The closest feature will have a value of 1, the second closest will have a value of 2, and so on. This field is only added to the output table when the Find only closest feature parameter is unchecked and the Maximum number of closest matches parameter value is greater than 1.
The following fields will be added to the output table if the Location parameter is checked. The field value will be in the linear unit of the input feature's coordinate system.
FROM_X—The x-coordinate of the location on the input feature that is closest to the near feature.FROM_Y—The y-coordinate of the location on the input feature that is closest to the near feature.FROM_Z—The z-coordinate of the location on the input feature that is closest to the near feature.NEAR_X—The x-coordinate of the location on the near feature that is closest to the input feature.NEAR_Y—The y-coordinate of the location on the near feature that is closest to the input feature.NEAR_Z—The z-coordinate of the location on the near feature that is closest to the input feature.
The following fields will be added to the output table if the Angle parameter is checked:
NEAR_ANG_H—The horizontal angle of the line at theFROM_X,FROM_Y,FROM_Zlocation that connects the input feature to the near feature.NEAR_ANG_V—The vertical angle of the line at theFROM_X,FROM_Y,FROM_Zlocation that connects the input feature to the near feature.
The following fields will be added to the output table if the Delta parameter is checked:
NEAR_DELTX—The distance along the X axis from the nearest location on the input feature to the nearest location on the nearest feature.NEAR_DELTY—The distance along the Y axis from the nearest location on the input feature to the nearest location on the nearest feature.NEAR_DELTZ—The distance along the Z axis from the nearest location on the input feature to the nearest location on the nearest feature.
The following field will be added to the output table if an Output Lines parameter value is specified:
LINE_ID—TheOBJECTIDof the polyline feature created to represent the shortest path from the input feature to the near feature.
The following fields will be added to the output table if the Output Points parameter value is specified:
FROM_PT_ID—TheOBJECTIDof the point feature created to represent the location on the input feature that is closest to the near feature.TO_PT_ID—TheOBJECTIDof the point feature created to represent the location on the near feature that is closest to the input feature.
When the input feature and near feature intersect, the following values will be written to the output table:
NEAR_DIST,NEAR_DIST3,NEAR_ANG_H, andNEAR_ANG_Vwill be set to 0.0.FROM_X,FROM_YandFROM_Zwill be identical toNEAR_X,NEAR_YandNEAR_Zand will be a location within the intersection of the two features.
The values for the
NEAR_DISTandNEAR_DIST3fields will be in the linear unit of the input feature's coordinate system.The output table can be joined back to the input features using the
IN_FIDfield or to the near features using theNEAR_FIDfield.You can enter values for any combination of the Search Radius 2D, Search Radius 3D, Search Above Max, and Search Below Max parameters, or for none of them.
If a value is specified for at least one of the Search Radius 2D, Search Radius 3D, Search Above Max, and Search Below Max parameters, and no near feature is found, no record will be output.
If no values are specified for any of the Search Radius 2D, Search Radius 3D, Search Above Max, and Search Below Max parameters, all near features will be considered candidates.
If no values are specified for any of the Search Radius 2D, Search Radius 3D, Search Above Max, and Search Below Max parameters, the Find only closest feature parameter is unchecked, and the Maximum number of closest matches parameter is set to the default (0 or empty), the output table will contain distance calculations between all input features and all near features. This process may take a long time and create a large output table. For example, if you have 1,000 input features and 1,000 near features, the output table will contain 1 million records.
To calculate distance and additional proximity information within a single feature class or layer, the same feature class or layer can be specified in both the Input Features parameter and the Near Features parameter. In this situation, the input feature being evaluated will be excluded from the near features candidates to avoid all features being closest to themselves.
Use a projection for the input features that is appropriate for distance measurement, such as an equidistant projection.
To visualize the
FROM_X,FROM_Y,FROM_Z,NEAR_X,NEAR_YandNEAR_Zfield values, use the output table as input to the Make XY Event Layer tool.If you specify an output line feature class, it will contain the following attributes so that you can determine what each line feature represents and its 3D length:
OUTTBL_OID(the OBJECTID of the row in the output table) andLENGTH_3D. The line will consist of two vertices; the first one will be on the input feature, and the second one will be on the near feature.If you specify an output point feature class, it will contain the following attributes so that you can determine what each point feature represents:
OUTTBL_OIDandON_NEARFTR.ON_NEARFTRwill contain 0 if the point is at the location of the nearest location on the input feature, or 1 if the point is at the location of the nearest location on the near feature.You can set a unit of measurement for the
NEAR_DISTandNEAR_DIST3fields—such as meters, kilometers, or miles—using the Distance Unit parameter. Use the Vertical Unit parameter to specify the unit of measurement for theDELTA_Zfield.
Learn more about coordinate systems and projections
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Features |
The input features, which can be 3D point, 3D polyline, 3D polygon, 3D multipoint, or multipatch type. |
Feature Layer |
|
Near Features |
One or more feature layers or feature classes containing near feature candidates. The near features can be 3D point, 3D polyline, 3D polygon, 3D multipoint, or multipatch. If multiple layers or feature classes are specified, the |
Feature Layer |
|
Output Table |
The output table containing the result of the analysis. |
Table |
|
Output Lines (Optional) |
An optional line feature class. Each line feature represents the path from the location on the closest part of the input feature to the location on the closest part of the near feature. Each line feature in this output represents one row in the output table and consists of just two vertices. These two vertices match the locations of the optional output points (two points for each line). The direction of the line is from the input feature to the near feature. Lines can be output even if points are not output. |
Feature Class |
|
Output Points (Optional) |
An optional point feature class. For each row in the output table, two point features will be output, one representing the location on the closest part of the input feature and one representing the location on the closest part of the near feature. Each such pair of points matches the two vertices of the output line feature representing the same row in the output table. Points can be output even if lines are not output. |
Feature Class |
|
Search Radius 2D (Optional) |
The horizontal radius that will be used to search for near features. If no value is specified, all near features will be considered. If a distance but no unit or unknown is specified, the units of the coordinate system of the input features will be used. |
Linear Unit |
|
Search Radius 3D (Optional) |
This is the same as Search Radius 2D, but in 3D, forming an imaginary sphere. |
Linear Unit |
|
Search Above Max (Optional) |
The maximum vertical distance above the input feature to look for near features. |
Linear Unit |
|
Search Below Max (Optional) |
The maximum vertical distance below the input feature to look for near features. |
Linear Unit |
|
Location (Optional) |
Specifies whether x-, y-, and z-coordinates of the input feature's location and closest location of the near feature will be written to the
|
Boolean |
|
Angle (Optional) |
Specifies whether the near angles will be calculated and written to the
|
Boolean |
|
Delta (Optional) |
Specifies whether the delta values will be calculated and written to the
|
Boolean |
|
Find only closest feature (Optional) |
Specifies whether only the closest near feature will be written to the output table. When unchecked, the Maximum number of closest matches parameter will appear.
|
Boolean |
|
Maximum number of closest matches (Optional) |
The number of near features that will be reported for each input feature. This parameter is ignored if the Find only closest feature parameter is checked. |
Long |
|
Distance Unit (Optional) |
Specifies the unit of measurement for the
|
String |
|
Vertical Unit (Optional) |
Specifies the unit of measurement for the
|
String |
|
Match Fields (Optional) |
The pairs of fields from the input features and near features that will be used for attribute matching. Only the near features that share match field values with the input features will be used in the near calculation. Value table columns:
|
Value Table |
Environments
Licensing information
- Basic: Requires 3D Analyst
- Standard: Requires 3D Analyst
- Advanced: Requires 3D Analyst