AnsweredAssumed Answered

How to program "share a line segment with" functionality of Select by Location

Question asked by USForestServiceAdmin on Apr 23, 2012
Latest reply on Apr 26, 2012 by USForestServiceAdmin
Hello all,

I have created a tool which finds the second largest polygon in a selectionset, and eliminates a polygon to the second largest polygon, instead of the largest polygon, as the native eliminate tool does in ArcMap.  In the Select By Location form, it gives you the option of selecting between several different Spatial selection methods, of which "Target layer features share a line segment with the source layer feature" is one of them.  I have written the following code:

Dim pSF As ISpatialFilter             pSF.Geometry = pFeat.Shape             pSF.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects

It seems the ISpatialFilter interface does not give the ability to select features that share a line segment.  It gives the ability to do a bunch of other things, but selecting features that share a line segment is not one of them.  Is there another interface I'm missing somewhere that does give that functionality?