Open Table of Contents

Point Global Snap

Go to ToolBox Implementation Go to .NET Implementation

Snaps the features of a point layer to another layer (Point, Polyline or Polygon)

Inputs:

Outputs:

Options:

Notes:

Example:

Before Snap

After Snap
Option: Vertices

After Snap
Option: Nearest Edge

After Snap
Option: Vertices & Edges

pnt_snap0.jpg (11952 bytes)

pnt_snap1.jpg (12000 bytes)

pnt_snap2.jpg (12031 bytes)

pnt_snap3.jpg (12185 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPSnapPoints <input_dataset> <Reference_dataset> <out_feature_class> <snap_tolerance> {snap_vertices} {snap_nearest}

Parameters

Expression Explanation
<input_dataset> A Point feature class or feature layer
<Reference_dataset> A Point,Polyline or Polygon feature class or feature layer.
<out_feature_class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<snap_tolerance> A Double representing  the Search tolerance (in the units of the input_dataset) to be used
{snap_vertices} A Boolean indicating whether snapping to the closest vertex of the nearest feature from the Reference_dataset to be used
{snap_nearest} A Boolean indicating whether snapping to the nearest point of the nearest feature from the Reference_dataset  to be used

Scripting syntax

ET_GPSnapPoints (input_dataset, Reference_dataset, out_feature_class, snap_tolerance, snap_vertices, snap_nearest)

See the explanations above:
<> - required parameter
{} - optional parameter

.NET implementation
(Go to TOP)

SnapPoints(pInFC As IFeatureClass, pRefFC As IFeatureClass, sOutFName As String, dSnapTol As Double, Optional bVertex As Boolean = False, Optional bNearest As Boolean = False, Optional bSnapToZ As Boolean = False) As IFeatureClass

Copyright Ianko Tchoukanski