SpatialEdmFunctions.SpatialBuffer(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫標準的「SpatialBuffer」函數,並指定參數,該函數必須有 Edm.Geography 或 Edm.Geometry 與 Edm.Double 的結果類型。 表達式的結果類型為Edm.Geometry。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ SpatialBuffer(System::Data::Common::CommandTrees::DbExpression ^ spatialValue, System::Data::Common::CommandTrees::DbExpression ^ distance);
public static System.Data.Common.CommandTrees.DbFunctionExpression SpatialBuffer(this System.Data.Common.CommandTrees.DbExpression spatialValue, System.Data.Common.CommandTrees.DbExpression distance);
static member SpatialBuffer : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function SpatialBuffer (spatialValue As DbExpression, distance As DbExpression) As DbFunctionExpression

參數

spatialValue
DbExpression

一個用來指定空間值的表達式。

distance
DbExpression

一個指定緩衝距離的表達式。

傳回

一個新的 DbFunctionExpression,回傳一個幾何值,代表所有小於或等於 distance 的點。spatialValue

例外狀況

spatialValue distance

spatialValue distance

適用於