Available with Advanced license.
Summary
Performs a spatial JOINITEM on the point coverage and the node coverage. It transfers the attributes from a point feature class to a node feature class. Each point feature in the point coverage is matched to the corresponding node feature in the node coverage. If any point is within the search radius of a node, the attributes are copied.
Illustration
Usage
If any point is within the search radius of a node, the attributes of that point are copied. If more than one point matches a node, then the nearest point is selected. If two or more points are the same distance from the node, then one is selected randomly. If two or more nodes are within the search radius of a single node, then the node nearest the point is matched.
The coverage-ID number for each matching point is stored as the node-ID number in the NAT. If there are no matches to a node, then the node-ID is equal to the internal node number.
If the node coverage does not have an NAT, then the NAT is first built with the Build command using the NODE feature type.
Additional items from the PAT file are added to the NAT file. If an existing NAT file has additional attributes, items from the PAT will be appended after them. Item values with no matching points will be blank for character items and zero for numeric. Existing items and item values in the NAT file will be maintained.
The point cover must have a point attribute table for this command to work.
The node cover can be the same as the point cover, in which case, the attributes of the PAT are transferred to the NAT within the point coverage.
If an item in the PAT exists in the NAT, the item values in the NAT are updated with values from the PAT.
Syntax
PointNode(point_cover, node_cover, {search_radius})
Parameter | Explanation | Data Type |
point_cover | The coverage containing point features to be transferred. | Coverage |
node_cover | An existing cover whose node attribute values will be updated or created if the NAT does not exist. | Coverage |
search_radius (Optional) | The maximum distance apart that points and nodes can be for the attributes of the point class to be transferred and recorded to the node coverage as a node class. The radius is given in coverage units. The default search radius is the width or height of the node coverage's BND divided by 100, whichever is larger. | Double |
Code sample
PointNode example (stand-alone script)
The following stand-alone script demonstrates how to use the Point Node tool.
# Name: PointNode_Example.py
# Description: Performs PointNode on two coverages.
# Requirements: ArcInfo Workstation
# Import system modules
import arcpy
from arcpy import env
# Set environment settings
env.workspace = "C:/data"
# Set local variables
pointCover = "wells142"
nodeCover = "county"
searchRadius = 3600
# Execute PointNode
arcpy.PointNode_arc(pointCover, nodeCover, searchRadius)
Environments
Licensing information
- Basic: No
- Standard: No
- Advanced: Requires ArcInfo Workstation installed