laptop and a wrench

Bug

ITopologicalOperator::Intersect does not always work correctly at ArcGIS 9.2 - not all intersections are returned.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM006824
SubmittedFebruary 13, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageVBA
StatusNon-Reproducible

Additional Information

No Public Explanation

Workaround

Using a spatial filter to perform the intersect works successfullySample workaround code provided to client:----------------------------------------------------------------------------Sub SpatialSelection()Dim pMxApp As IMxApplicationDim pMxDoc As IMxDocumentDim pMap As IMapDim pTargetLayer As IFeatureLayerDim pSelectingLayer As IFeatureLayerDim pFeatureClass As IFeatureClassDim pEnvelope As IEnvelopeDim pFeatureSelection As IFeatureSelectionDim pSpatialFilter As ISpatialFilterSet pMxApp = ApplicationSet pMxDoc = Application.DocumentSet pMap = pMxDoc.FocusMapSet pTargetLayer = pMap.Layer(0) 'Centerline_ExportSet pSelectingLayer = pMap.Layer(1) 'FireBoxArea_ExportSet pFeatureClass = pTargetLayer.FeatureClassSet pEnvelope = pSelectingLayer.AreaOfInterestSet pFeatureSelection = pTargetLayerSet pSpatialFilter = New SpatialFilterWith pSpatialFilterSet .Geometry = pEnvelope.GeometryField = pFeatureClass.ShapeFieldName.SpatialRel = esriSpatialRelIntersects.WhereClause = "SEGMENTID = '0151913' OR SEGMENTID = '0158895'"End WithpFeatureSelection.SelectFeatures pSpatialFilter, esriSelectionResultNew, FalsepMxDoc.ActiveView.PartialRefresh esriViewGeoSelection, Nothing, NothingEnd Sub

Steps to Reproduce

Bug ID: NIM006824

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options