The Code it occurs on each of the following interchangable lines that I have tried:
arcpy.Clip_analysis(dvof_input, feature_name, rwy_dvof_output_prefix + row['LOW_IDENT'] + rwy_dvof_output_suffix, "") arcpy.Clip_analysis(dvof, feature_name, rwy_dvof_output_prefix + row['LOW_IDENT'] + rwy_dvof_output_suffix, "")
Note: The only difference between these two input features is one is that dvof is a clip of dvof_input occurring earlier in the script.
ERROR 999999: Error executing function. The coordinates or measures are out of bounds. Failed to execute (Clip).
Will not work in Script, works fine when I use the Clip Tool. I even copy/pasted the exact Python Snippet from the Clip tool and put it into the Arcpy Script and the error persists.
It's even more confusing, because the same input feature clips to a different feature successfully earlier in the script (although it usually takes ~8 minutes):
arcpy.Clip_analysis(dvof_input, buffer, dvof, "")
I have another dataset of Points, similar to this dvof_input, called dof_input, which works just fine for both parts of this script:
arcpy.Clip_analysis(dof_input, buffer, dof, "") ... arcpy.Clip_analysis(dof, feature_name, rwy_dof_output_prefix + row['LOW_IDENT'] + rwy_dof_output_suffix, "")
Worth noting, the "feature_name" polygon was created in ArcPy, and was projecting incorrectly until I added the SR to the creation of it:
## splay is a list of arcpy.Point objects ## arcpy.CreateFeatureclass_management(arcpy.env.workspace, feature_name, "POLYGON", spatial_reference=arcpy.env.outputCoordinateSystem) cursor = arcpy.da.InsertCursor(arcpy.env.workspace + '\\' + feature_name, ['SHAPE@']) array = arcpy.Array(splay) splay = arcpy.Polygon(array, arcpy.env.outputCoordinateSystem) cursor.insertRow([splay])
Any other information I can add to diagnose this one? I tried to be comprehensive here so someone could spot a glaring issue.