Select 'using GeometryBag as spatialfilter geometry' returns an ncorrect feature count on SDE data.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM034037
Submitted
April 8, 2008
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.2
Status
Known Limit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
Use ITopoOp::Union to get the resulting combined features instead of the geometrybag object.Dim pTopo As ITopologicalOperator2 Dim feature As IFeature feature = featureCursor.NextFeature Do While Not feature Is Nothing If pTopo Is Nothing Then pTopo = feature.Shape pTopo.IsKnownSimple_2 = False pTopo.Simplify() Else pTopo = pTopo.Union(feature.Shape) End If 'geoCollection.AddGeometry(feature.Shape) 'removed this feature = featureCursor.NextFeature Loop Dim geoColIndex As ISpatialIndex geoColIndex = CType(pTopo, ISpatialIndex) geoColIndex.AllowIndexing = True geoColIndex.Invalidate()