Snap Point
Description
Snap input point features to closest cell in the input Snap Stream Grid raster using the specified snapping distance.
- If the input point has SnapOn set to 0, it will not be moved. Otherwise, if SnapOn does not exist or is set to 1:
- If the input point is located outside of the snapping distance, it will be moved to the center of the cell.
- If the input point is located within the snapping distance, it will be snapped to the center of the closest cell with a valid value and the field SnapDist will be populated with the distance the point was moved.
Usage
Parameters
| Direction |
Type |
Parameter Name |
Data Type |
Dialog Reference |
| Input |
Required |
Input Batch Point Feature Class |
GPFeatureRecordSetLayer |
Input Point features to snap. This feature class must contain the following attributes:
HydroID: Unique identifier of the input point. Used to populate the HydroID field in the output SnapPoint feature class. If not present, the ObjectID field will be used instead.
SnapOn (Optional): 0/1. Indicates whether the tool should try to snap the point feature.
|
| Input |
Required |
Input Snap Stream Raster |
GPRasterLayer |
Input raster used to snap the points. |
| Input |
Required |
Snapping Distance in Linear Units or Field |
Field |
|
| Output |
Required |
Output Snap Point Feature Class |
GPFeatureLayer |
Output Snap Point features populated with the following attributes:
HydroID: Unique identifier of the feature.
FeatureID: HydroID ( or ObjectID) of associated input point.
SnapOn: 0/1. Indicates whether the tool tried to snap the point. Populated with 1 if SnapOn field does not exist in input Batch Point feature class or is populated with 1.
Snapped: 0/1. Indicates whether the point was snapped.
SnapDist: Distance by which the point was moved in linear units. Populated with -1 if the input point could not be snapped.
|