I am running intersect analysis for a large number of records in a python script. There are ~2100 records, and I perform intersect analysis for each record. The script works fine until it gets to about record 1850 - then creates an empty output. I tried repairing the geometry of the inputs and it made no difference. Each of these inputs is almost exactly the same in size, orientation, etc. Why is this tool crashing on input 1850?
This is the section of my code that is producing the empty output:
*Profile and point are created from geometry objects. I had issues previously getting intersect analysis to recognize the correct hierarchy of the geometry objects, which is why I've copied them to feature classes. As feature classes, intersect analysis recognizes hierarchy just fine.
For the record in question, the output line and points are produced without a problem. It's just the intersect analysis that is producing the problem.
Can you share your script, or the functional parts of it related to these intersection? Without seeing detailed code, it is hard to offer suggestions. If you can post any data with it, even better.
Hi - included a code snippet. I can attach the problematic line and point file when my current script finishes up ... I have it running now to just skip empty outputs so I have at least some outputs to work with. It may give me a better picture of how extensive the problem is as well - is it just record 1850, or every record subsequent to 1850?
I am intersecting a cluster of points with a line ... no polygons involved. The intersect tool for geometries unfortunately doesn't have the option for an XY tolerance. I really need the output from intersect analysis, which is oddly working for the majority of the inputs but not all.