In short, are STDisjoint()
and STIntersects()
antipodes of each other?
According to the documentation, it seems that they are. But there is no explicit note about it.
Are there any tricks? Which one is faster, for example?
Mathematically, disjoint = not intersects.
As to which is faster, according to the documentation on spatial indexes at http://msdn.microsoft.com/en-us/library/bb895265.aspx#methods , a spatial index can be used for a query containing geometry1.STIntersects(geometry2) = 1
.
Strangely enough, geometry1.STDisjoint(geometry2) = 0
is not listed.
column = @X
can use an index while column <> @X
usually doesn't.
Commented
Aug 14, 2014 at 9:03