SQL Spatial DWithin

时间:2011-04-15 19:38:57

标签: sql-server-2008

SQL Server 2008 SQL Spatial是否等同于PostGIS DWithin?我有两个线串似乎在一个点聚集在一起,但它必须是它们刚刚关闭,因为STIntersect说它们不相交。

1 个答案:

答案 0 :(得分:1)

From http://postgis.refractions.net/documentation/manual-1.3/ch06.html:“ST_DWithin(geometry,geometry,float)如果几何在彼此的指定距离内,则返回true。如果可用则使用索引。”

等效的SQL Server方法: ST_DWithin(geomA,geomB,d)

因此,

将是: geomA.STDistance(geomB)< d