laptop and a wrench

Bug

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

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM010450
SubmittedJuly 20, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageVBA
Version Fixed9.3
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: NIM010450

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