Select to view content in your preferred language

Pairwise Clip for large datasets yields incorrect results

753
4
02-05-2024 04:22 AM
ColtonPhillips
Occasional Contributor

I'm using ArcGIS Pro 3.2.1

I have a feature service feature class with 13 polygons and another feature service feature class with 73,061 lines. 

When using pairwise clip, not all of the lines are clipped to the polygons. It seemingly clips random lines. 

 

ColtonPhillips_0-1707135491499.png

The example above shows when all 13 polygons are active and the line file is clipped to the polygon. The red lines are what is clipped and the green lines are not. 

 

Below is when only 1 of the polygons is selected and pairwise clip is used. 

ColtonPhillips_1-1707135505685.png

When only one of the polygons is selected, pairwise clip works as expected. 

 

When using the regular clip tool, this issue doesn't occur. All 13 polygons can be selected and the lines will be clipped as expected. Is this a limitation of the pairwise clip tool? Is this some sort of overflow error or Langton's Ant situation?  When should Pairwise Clip be used vs Clip?

 

 

 

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

BUG-000152658 for ArcGIS Pro (esri.com)

It may apply to one of your polygons perhaps


... sort of retired...
ColtonPhillips
Occasional Contributor

Thanks. I think you might be right. A coworker of mine suggested that it could be since it's multi-part polygon too. It's strange that the pairwise clip doesn't work how I'd expect but the regular clip tool does. It may have something to do with how it's parallel processing/indexing. 

 

Thanks again!

0 Kudos
KenHartling
Esri Contributor

BUG-000152658 was addressed in ArcGIS Pro 3.1. An automated test for the issue was added to our test harness and it has been passing since the fix was installed back in 3.1. 

If you are still seeing the problem can you please bring it to the attention of our support analyst so we can investigate? 

Thx. Ken

0 Kudos
ColtonPhillips
Occasional Contributor

Hi Ken, 

When I initially ran into this bug, I was on ArcPro 3.2.1 so it seems to me that the 3.1 version did not actually fix it. I haven't used the Pairwise clip tool since, and have just stuck with the traditional clip tool with no issue. I think that multipart features might be what's causing that issue that I was experiencing. Next time I need to clip something, I'll try both tools and compare them