It would be nice if the documentation explicitly addressed why there are multiple ostensibly similar functions. Since STIntersects' existence presumably rules out partial vs. strict subset, I can't think of any other English-based meaning difference between STWithin and STContains.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thank you @eliotg - again - I'll find the answer.
Still monitoring.
Here's the answer that I got back:)
Functions starting with ST are OGC standardized function calls that can be found in other implementations of OGC spec as well in similar forms (e.g.
ST_Within,ST_Contains, in PostgreSQL, Oracle, etc)Also, I don’t see any language ambiguity when saying if A CONTAINS B, then B is WITHIN A, i.e.
a.STWithin(b) == b.STContains(a)