Subtracting A Sql Server Geometry From Another
Is there a way to subtract a geometry from another? A kind of reverse STUnion.. The problem I am having is that I need to ensure a shape fits within another (without changing the
Solution 1:
Just use .STDifference()
. No need to intersect first, then subtract the intersection. Just subtract directly.
Solution 2:
Did you try STWithin?
Post a Comment for "Subtracting A Sql Server Geometry From Another"