laptop and a wrench

Error

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

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM010450
EnviadoJuly 20, 2007
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.2
Lenguaje del programaVBA
Versión corregida9.3
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: NIM010450

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga