laptop and a wrench

Bogue

SelectFeatures with a spatial query does not work when using a query geometry which is a GeometryBag with more than one feature in it.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM010450
EnvoiJuly 20, 2007
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeVBA
Version de correction9.3
StatutFixed

Solution de contournement

Use GPDispatch instead.Public Sub SelectByLocation()Dim pMxDoc As IMxDocumentSet pMxDoc = ThisDocumentDim pMap As IMapSet pMap = pMxDoc.FocusMapDim pInLayer As IFeatureLayerSet pInLayer = pMap.Layer(0)Dim pSelectLayer As IFeatureLayerSet pSelectLayer = pMap.Layer(1)Dim GP As ObjectSet GP = CreateObject("esriGeoprocessing.GpDispatch.1")GP.selectLayerBylocation_Management pInLayer, "CONTAINED_BY", pSelectLayer, "", "NEW_SELECTION"End Sub

Étapes pour reproduire

ID de bogue: NIM010450

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