laptop and a wrench

Bug

IRelationalOperator.Contains returns incorrect result for specific polygons when spatial index is defined (using ISpatialIndex.AllowIndexing = true).

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM049937
SubmittedOctober 19, 2009
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found9.3.1
Program languageC#
Operating SystemWindows OS
Operating System VersionXP
StatusNon-Reproducible

Additional Information

No Public Explanation

Workaround

Use ITopologicalOperator4::Simplify method to simplify the geometries.To test the workaround uncomment following lines from the ContainsTestCmd.cs file.ITopologicalOperator4 pTopologicalOp = (ITopologicalOperator4)largePolyFeature.Shape;pTopologicalOp.IsKnownSimple_2 = false;pTopologicalOp.Simplify();ITopologicalOperator4 pTopoOp2 = (ITopologicalOperator4)smallPolyFeature.Shape;pTopoOp2.IsKnownSimple_2 = false;pTopoOp2.Simplify();

Steps to Reproduce

Bug ID: NIM049937

Software:

  • ArcGIS for Desktop

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