The boundary of a polygon is not contained within a polygon, however it does touch the boundary and an intersection does exist.Declare @point geometry = geometry::STGeomFromText('Point(1 1)',4326);Declare @polygon geometry = geometry::STGeomFromText('Polygon((1 1, 1 0, 0 0, 0 1, 1 1))',4326);Select @point .STWithin(@polygon) as [STWithin], @point .STTouches(@polygon) as [STTouches], @point .STIntersects(@polygon) as [STIntersects], @point .STIntersection(@poly
↧