0

I am trying to snap points (temp2.shp) to nearest line (Rail2.shp) at any of its vertex within any distance.

ArcPy code:

temp2 = "M:\\temp2.shp"
arcpy.Snap_edit(temp2, ["M:\\Rail2", "VERTEX", '10000 Feet'])

Error Message:

Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of END | VERTEX | EDGE.
ERROR 000800: The value is not a member of END | VERTEX | EDGE.
ERROR 000800: The value is not a member of END | VERTEX | EDGE.
Failed to execute (Snap).

1 Answer 1

2

This answer to ERROR 000800 when trying to snap points layer to line or buffer layer helped.

Adding a set of square brackets on top of the existing square brackets.

Working code:

temp2 = "M:\\temp2.shp"
arcpy.Snap_edit(temp2, [["M:\\Rail2", "VERTEX", '10000 Feet']])

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.