I think you want to implement ISpatialFilter and set the .SpatialRel to esriSpatialRelIntersectshttp://resources.esri.com/help/9.3/arcgisserver/apis/arcobjects/esrigeodatabase/ispatialfilter.htm
Dim parcelFeat_ As IFeature = Nothing parcelFeat_ = ParcelLayer.esriIFeatureLayer.FeatureClass.GetFeature(239319) Dim spatialFilter_ As ISpatialFilter = New SpatialFilter With spatialFilter_ .SpatialRel = esriSpatialRelEnum.esriSpatialRelOverlaps .GeometryField = "SHAPE" .Geometry = parcelFeat_.Shape End With Dim wetOverlapFeat_ As IFeature = Nothing Dim wetOverlappingFeatsCursor_ As IFeatureCursor = wetLandsFeatureClass.Search(spatialFilter_, False) wetOverlapFeat_ = wetOverlappingFeatsCursor_.NextFeature Do Until wetOverlapFeat_ Is Nothing Debug.Print("Overlapping Feature Found: {0}", wetOverlapFeat_.OID) wetOverlapFeat_ = wetOverlappingFeatsCursor_.NextFeature Loop
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.