laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM006824
EnvoiFebruary 13, 2007
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeVBA
StatutNon-Reproducible

Informations supplémentaires

No Public Explanation

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM006824

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement