有没有等同于PostGIS DWithin的SQL Server2008SQL Spatial?我有两个线串,它们似乎在一个点上结合在一起,但一定是因为STIntersect说它们不相交,所以它们只是关闭了。
发布于 2011-07-25 04:39:14
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)
https://stackoverflow.com/questions/5681529
复制相似问题