Is there a SQL Server 2008 SQL Spatial equivalent to PostGIS DWithin? I have two linestrings that appear to come together at a single point, but it must be that they are just off because STIntersect says they do not intersect.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From http://postgis.refractions.net/documentation/manual-1.3/ch06.html: “ST_DWithin(geometry, geometry, float) Returns true if geometries are within the specified distance of one another. Uses indexes if available.”
The equivalent SQL Server method for:
ST_DWithin(geomA, geomB, d)
would therefore be:
geomA.STDistance(geomB) < d