Not using SQL Server spatial index

Hi John,



We did some changes from 6.0 to 9.0. In MsSql Server 2008 only intersects, disjoint, topologicalequal are available for geography.  The code 


Dim sectionFeatures As Collection(Of Feature)
Dim sectionColumns As String() = {"SECTION", "TOWNSHIP"}
sectionFeatures = sectionLayer.QueryTools.GetFeaturesContaining(inPoint, sectionColumns)

will generate the different SQL statement between 6.0 and 9.0 as you attached before. In 6.0 the logical operation is STIntersects but it’s SWithin in 9.0. Please call the sectionLayer.QueryTools.GetFeaturesIntersecting(inPoint, sectionColumns) method in 9.0 to get the same result as call the sectionLayer.QueryTools.GetFeaturesContaining(inPoint, sectionColumns) method in 6.0.



Thanks,

Peter