ISpatialFilter::SpatialRel::esriSpatialRelIntersects returns incorrect results when data is in SDE.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM031245
Submitted
January 11, 2008
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.2
Version Fixed
10.1.2
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
Use GPDispatch.Public Sub SelectByLocation()Dim pMxDoc As IMxDocumentSet pMxDoc = ThisDocumentDim pMap As IMapSet pMap = pMxDoc.FocusMapDim pSelectLayer As IFeatureLayerSet pSelectLayer = pMap.Layer(0)Dim pInLayer As IFeatureLayerSet pInLayer = pMap.Layer(1)Dim GP As ObjectSet GP = CreateObject("esriGeoprocessing.GpDispatch.1")GP.selectLayerBylocation_Management pInLayer, "INTERSECT", pSelectLayer, "", "NEW_SELECTION"End Sub