Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Boundary is not included when using STWithin()

$
0
0
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

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>