2011-04-15 26 views
1

是否存在與PostGIS DWithin等效的SQL Server 2008 SQL Spatial?我有兩條似乎是在一個點上聚集在一起的線條,但它必須是因爲STIntersect表示它們不相交而已關閉。SQL Spatial DWithin

回答

1

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